Example. John the doctor prescribes large doses of opioids even though he knows this is probably harmful. He reasons, "If I don't do it, my patients will just go to some other doctor who'll do it anyway. Hence, what I'm doing isn't immoral."
Is there a name for the above argument? And have there been any serious analyses of this argument by philosophers (as to whether or not or to what extent it is valid)?