I think differently. I think midlevels are able to encroach because they are cheaper to reimburse than we are. The doctor shortage is because there isn't enough money (Medicare) to train more doctors.
There's enough qualified people out there ready to be trained otherwise. Our governments way of getting around this is by diluting the quality of healthcare with mid-level care.
Honestly, I think the government should just make it so IMGs work for far less money during residency, for free, or even for a tuition. US students are swamped in debt, majority of IMGs have little to no debt. They're ultimately going to make money back.
Before anyone tries to pummel me for that idea, I'm an IMG myself and I wouldn't mind having to take out a loan for residency if required. If that's the price I have to pay to be trained and work in the US then I would, because I consider it a privilege. (Plus, the $40-50k/yr isn't going to make or break my future.)