In my experience the pay difference was never that close that meaning and ethics played a role in the decision.
Cool exciting and meaningful science job: 200k
Big Tech surveillance capitalism job: 800k (at the low end)
The calculus has only been about affording housing and providing for the family.