Your example is weird tbh. Gates was doing capitalist things that were evil. His philanthropy is good. There is no contradiction here. People can do good and bad things.
The "philanthropy" worked on you.
The "philanthropy" worked on you.