It's a trade off.
Diesel engines are more efficient at using the energy in the fuel and as a result produce less CO2.
However, diesel engines generally produce more NO2 and particulate emissions which causes local pollution. There are technologies which mitigate these pollutants for diesel engines (such as urea injection and exhaust gas recirculation) which are required in the US, but I believe there is less stringent requirements for them in Europe.