But not all of the H1B folks are the best from around the world; they're simply significantly cheaper, and the reality of the H1B Visa also means that they're very unlikely to quit their jobs for greener pastures.
Though, it isn't like the US actually wants to fix its immigration system. It benefits from the resulting submissive population and takes great sadistic joy in having a group of people they can harass and blame for everything, while those outsiders pay into the system, often arriving in the US through an educational visa, thus helping to prop up universities.
The H1B system has been a wreck for decades, the lottery system encourages abuse and doesn't make any sense if your goal is for immigration to be for skilled people (compared to most other places, which just directly look at your skills compared to what they need). Politicians talk a lot about how if elected, they will fix it, only to never actually do so.
This directly lowers the wage an American can earn. This is one way corporations pin the market to a wage they want rather than what is reasonable and fair for the worker. "That's the market rate" Is some serious bullshit, they manipulate it at every turn.
On one hand, H1B holders can be paid below market rates because it is very hard for them to switch jobs. For this reason, they create resentment from American citizens.
On the other hand, it would be extremely detrimental to the US to kill the golden goose of our tech industry by turning it into some kind of forced welfare for citizens. Another country which is able to hire the best from around the world will take our place.
And then of course, the entire program is structured in an extremely bureaucratic way, with all this nonsense about publishing job ads in secret newspapers.
It seems that these issues could be addressed very simply by tweaking Trump's proposed "gold card" system: anyone can get a work visa, by paying $100,000 per year. This is not tied to a specific employer. The high payment ensures that the only people coming over are doing so to earn a high salary in a highly skilled field. There is no tying the employee to a specific company, so it is fairer for citizens to compete against them.