With the current big tech firing frenzy I'd like to know if a US company must prefer the US citizens over working visa holders during mass lay offs?
Let's say if there are 2 software developers but one is an immigrant, a working visa holder and the second is a citizen. They are both at the same level, professionally.
Must the American companies prioritize citizens in keeping them hired and let the foreign nationals go?
I know when a company sponsoring working visas they must prove the need and show they aren't able to source workers inside the US prior to getting the visas for the foreign candidates. So logically, it might follow that they should also priorities the citizens in case of mass lay offs. Can a company be sued by a citizen for keeping the foreign national if he can prove the wrong doing?
Is there any reference in working visas(i.e.H1B) application saying something that in case of mass lay offs these conditions can happen?