One change I would make to H1B would be to auction them to companies instead of granting them. That would shut up the cries of "We can't hire anyone". If you really can't find anyone in the US at any price, you'd happily bid on an H1B to find someone. If you're just a cheapskate and don't pay market wages, then why do you think you should be able to rip off foreign citizens?
The alternative to H1B is offshoring, which is clearly worse than immigration.
Take lawyers. Even when there are far too many people who meet the minimal qualifications, the better ones still get payed a huge amount because those who are paying them recognize the value of quality.
There will still be lots to exclude outsiders from higher pay even if it becomes easer for them to get in.
The result is that the market for H1B labor is corrupted in favor of employers, perverting the fair market wage for developers. Prior to 2000, there were all sorts of horror stories about poorly trained tech workers living in dorms working for half the prevailing wage; they were probably not all made up.