While I generally agree with the sentiment of your comment, I would like to point out that the above is only true for green card holders. There are a lot of H1B/L1B workers stuck at bad teams with high amounts of pressure/stress and incompetent or downright abusive managers.
For them, leaving the company isn't an option because it means leaving the country and leaving a life-changing amount of money on the table and denying their children the advantage of growing up in the US.
You might argue they can switch teams, which is technically true, but this can complicate and delay the green card process, and vindictive managers often smear engineers with HR because people bailing on them makes them look bad. At Amazon for example, particularly bad managers will PIP an engineer to block them from transferring teams.
So while in general engineers are treated well and can choose where they want to work, I think we should also show some solidarity with our friends who don't have the same options that we do.