You are right, but I hope you do understand my point. This is about short term vs. long term. Bill Gates could have made the choice to not found Microsoft, and instead give the seed money to a charity that solves a disease. But then he wouldn't have been able to spend billions on malaria research.
Both the short term and the long term are important. So it is strange to make the comparison. Both these investments can co-exist.