However...
>choose your team and manager very carefully and care a bit less about the company you join
I love my team, and even my organization that I work with. Multiple people on my team have stated that ours is the best team they've ever been part of in their career. But I don't love my company. I'm still at Amazon because even though my company is actively pushing me away, the love and enjoyment working with my team has been enough to get me to stay. So your advice here really strikes a chord with me, and I wish I could echo it.
Unfortunately, this advice isn't actually tenable, because no matter how great your team is, it's only one company leadership decision away from being ripped apart. I've watched this happen multiple times now, and this announcement is going to make it happen again. Caring less about your company just doesn't work when your company has shown multiple times that they are willing to throw away your team like that.