> Their wares sometimes do no harm, but it's the exception.
I disagree with that to a very extreme degree (also it's a very silly thing to say unless you don't see any value in computers, smartphones, planes, automobiles, washing machines, fridges and other appliances).
The things you listed are generally the exceptions. Also the question is whether society/people benefited from VW, Exxon, DuPont etc. to such an extent that it outweighed all of those things?
Of course it's relative, if we value access to cheap and effective transportation, synthetic clothing, various plastic products etc. more than we care about all the negative externalities that's what we get... It's all down to incentives, corporations are inherently neither good nor evil.
> to earn more money. The products we get are side effects of it.
I agree that's true on the whole. But that's why humans do anything at all (replace money with other tangible or intangible benefits). Absolute altruism doesn't scale and isn't in any way sustainable.