Most of them do plenty of bad shit but at least for a company like Amazon you can make the case that their logistics and infrastructure delivers real value and moves material goods around the world and creates quite harsh but at least reasonably paying blue collar jobs whereas Facebook and other 'social media' giants' drive political discourse to ruins, teenagers mad, and employ hordes of underpaid gig workers to sift through child abuse content and other horrid crap.
And that aside you're not forced to work for FAANG. Plenty of small companies around who do good work in healthcare or what have you, or national security, the defense sector and other public sectors desperately looking for engineers.
Plenty of work to do that is more meaningful than getting kids to click on ads.