Consider this, though. Even the most qualified H1-B candidate can end up getting paid less than they should simply because of the way the green card application process works.
Once an H1-B holder has filed for a GC, they can't be switch employers or be promoted. Since most companies have pay caps based on job title, this means the H1-B holder can't get raises past a certain point. The end result of all this is you have H1-B "junior engineers" who've worked at the same company for 5+ years really doing the job of a intermediate/senior engineer.
The joke is that the company is not "gaming the system" at all. By not promoting someone with an outstanding GC application, they're doing exactly what the law requires of them.