Since you seem so well-informed I would love any example of good-will and strictly not-for-profit activities done directly by a large corporation with shareholders which weren't done have other reasons.
Examples of things which don't count:
- Supporting an open source competitor to avoid getting hammered by antitrust
- Giving money to a foundation (which they may or might not own) for greenwashing
- Giving money to a foundation ran by a friend/family member
- Doing an activity to try to fix an evil thing they did before and backfired
- Doing something good for obvious PR reason (e.g. By being heavily advertised) but then do something even worse in the same area later on
I'm genuinely interested in a healthy conversation about this. But I honestly cannot think of anything which either is generally free for the company or that will help them getting (or not losing) more money. Happy to be wrong.