Big Tech, for example, treats SWEs as largely interchangeable. Make a SWE redundant and you can't hire another SWE--anywhere in the country--who is a visa holder for 24 months.
You can buy your way out of this by paying any redundant SWE 3 years of salary and benefits.
Let's see how necessary layoffs really are.