With injection engines this simply isn't true any more.
> made a big mistake by adopting diesel
The small injection turbo diesel engines offered much higher efficiency and thus much lower CO2 emissions (~half) compared to contemporary gasoline engines (they still do). Other parts of the emissions profile (e.g. NOx) have almost exclusively to do with how efficient the engine is run, e.g. gas engines that are close to efficiency to diesel engines will produce similar amounts of NOx.
Broadly speaking, as more aspects of the combustion are externally, forcibly controlled, differences between diesel and gas engines become a lot less.
(The average German car has a 1.6 liter three or four cylinder engine doing something like 4.5l/100km ~ 50 mpg; basically no one is driving big cars with six or eight cylinder engines).