Then substitute "invested" for "donated". Or, hell, "invested in figuring out how best to help developing countries" (like http://www.givewell.net/). The stereotypical ways to help people do tend to suck (lending the original quote much of its plausibility), but there are other options.