"I faced the same question at the beginning of the GNU Project. I decided that I would rather do something good with no monetary reward than profit by mistreating people." Thank God Stallman helped all of those sick kids with Malaria in Africa with by giving them GIMP and GCC. Way better than the billions of dollars and thousands of vaccinations Bill and Melinda Gates gave to them. In all seriousness, if we're going…
The only reason you can write that is because there is a dollar value attached to the Bill and Melinda Gates foundation, which in turn allows you to measure how much money is being pumped in to those projects.
But the effects of open source on the way the third world is operating are much harder to quantify, it could very well outweigh the effects of the money that goes in to helping those sick kids with Malaria, by enabling a solution to the problems around them rather than just curing a disease they've got.
Both are good, both have a place in this world, don't take the easy way out and use the money as the yardstick, and no, capitalism is not more or less moral than open source and does not do more good, after all for every Bill Gates there are lots of Larry Ellissons.