You might have a point in just donating to a generic charity but Gates? I can't imagine anything he could possibly have done with that money that could have more impact than what he actually is doing. He's funding research that would never get done otherwise.
Capitalism may be good at what it does, but it isn't the answer to all problems.