You are absolutely correct. So for instance, corporations never attempt to make money doing something they know would be bad for society.
Someone's welfare, sure. Human welfare in the greater sense, not so much. Arguments about the invisible hand fall apart in the face of regulatory capture