No modern train uses a diesel engine to power their wheels directly. They're used as generators to power electric motors. So the only difference boils down to where the electricity comes from. And even in the most train-friendly countries like France and Japan, huge sections of the network are not electrified.