Yea but the visa law is horrendous tho. 60 days hard deadline if unemployed, CBP invalidating H1B for reasons, can't return if you got laid off out of country, and whatever Trump did recently that made people worry to fly outside the country. Not to mention the brutal green card line.
Xi Jinping isnt as AGI pilled as US govt. CapEx in US is significantly focused on AI related things like chips and data center. It's more diversified in China as they also invests hugely on renewables, EV, BESS, etc.
The social contract that American society elect (including these non executive engineers) emphasize career flexibility (right-to-work) and returns of capital than job security. Especially during booming economic years.