I think that is largely true, but for example I think Tim Cook as a gay man really does care about human rights. Yes, at the end of the day he has to answer to the board. But I think some of what he does has value, and it isn't just for marketing reasons.
As @emacsen pointed out, when MS does something to promote women in programming, we can hopefully take some benefit from that.
The corporations do exist for making money, but sometimes the actions are being made by humans that aren't entirely bad.
"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko