As far as malaria is concerned, DDT turns out to be real effective at killing mosquitoes, the major problem in the developing world of LOTS of infectious diseases. But those of us in the developed world got more concerned with the eagles and stuff and essentially go out of our way to keep DDT from being used even though it's use in the developing world would literally save tens of thousands of human lives. The governments of the developed world did that, not capitalism.
It's a grey world out there and while it's much easier to get clicks with "male baldness gets more funding than malaria so capitalism doesn't work", it's not really very helpful in actually fixing things.