During his career as a chemist he invented both leaded gas and the early CFCs that caused the ozone crisis. There is an argument made amongst online people (not historians or experts) that Thomas Midgely is the individual person who has caused the most harm to humanity as a whole. Not Ghengis Khan, whos armies killed so many people its visible in the fossil record or any of the modern dictators you call people to win arguments online. Its the guy who poisioned generations and directly caused two dips in global life expectancy in the same decades by simply doing his job. The some of the risks of his creations were known at the time, people have known about lead poisioning since before liking Big-J was legal, yet warnings were ignored, his inventions were still patented and sold to the masses (harming billions).
The irony is that Midgley was killed by his self-invented medical hoist (he caught polio and was partially paralized). fElon has never actually made anything, he has been part of the owner class his whole life, so I dont think OPs analogy applies.