Emissions aren't a single thing. Diesel produces less carbon dioxide - the main climate change gas - but more pollution nasties.
Diesel exhaust is nasty stuff in the short term, particularly if you're breathing it. Carbon dioxide is nasty stuff in the long term.
Basically, burning oil products is a bad idea full stop.