This is really suboptimal though, what if you have a H1B worker that's a high performer in a key position that would make your company collapse if they left but say, they were born in India, and you're laying off folks in projects that failed / folks that are low-performing.
It's pretty easy to fix the perverse incentives of H1B hiring: give folks a green card after being here for 3 years, that's basically how long it takes for ROW folks to get green-cards in good years.