Regarding diesel, it's important to remember that it was a byproduct of oil refinery that had to be used somehow (instead of being discarded and trashed in the nearby river). Some industrial engines and boats have been designed to use it (and are actually better run on diesel engines). Diesel car engine also became a thing, but was originally emitting more small particles. Specific catalytic converters have been introduced to remove those particles decades ago, with very high efficiency (95+%). Those converters are alas not so efficient at lower speed. That's why we don't want too many diesel cars in our cities.
[1] https://publications.jrc.ec.europa.eu/repository/bitstream/J...