1. Find H1B candidate you want to hire.
2. Write job requirements matching that candidate’s experience so well it’s very unlikely for anyone else to meet those requirements.
3. Advertise position to meet legal requirements and reject any candidates not exactly matching requirements.
4. Hire H1B candidate.
Later for serious candidates it got completely unpractical, because H1B lottery got too filled with companies mass hiring Indians, that no serious company will spend time on hiring you given they have 20-30% chance of actually being able to get you into US.
So now only H1B hiring you have is mass hiring, where company does not care if you or someone else gets through lottery, as long as they'll get their 20-30% of candidates through.
My own take; its complicated. From my own direct experiences, there is a world of difference between how large companies typically use the H1B (The Microsoft/Apple/Metas) etc and how say a medium sized fortune 500 company IT department might typically use it. There are absolutely ways to abuse the process and they types of jobs being worked on an H1B very enormously in type, quality and salary - just explore the data above. The larger companies pretty much always do hire on same terms as any other American. At smaller companies, can be a lottery.
Salary isn't the only means of exploiting an H1B hire either, to be clear. Lots of other tricks like slow walking immigration processes, exploiting the fact it is harder for an H1B employee to change job than a citizen. The being skipped over for a promotion to avoid paperwork issues with the LCA etc is something I've seen first hand.
H1B’s sometimes get skipped over for promotions specifically because it would mess with the paperwork. Which across an industry would definitely mess with these statistics.