In a word, no. Conversion efficiency in a central power station is on the order of 45%. Conversion efficiency of a gasoline engine is on the order of 20%. Yes, there are losses down the electricity conversion train, but they are nowhere near the direct losses in IC.
The efficiency of a chain of conversions of energy is the product of each of the efficiencies multiplied by the other (reliability is the same).
It would only take one component of 51.1% or less, if the battery, inverter and motor were 100% efficient (and they aren’t).
Also, the modern i.c. engine is a bit better than 20% nowadays, even the gas ones. Diesel turbos are around 35% efficiency. Gas engines achieve that at full throttle nowdays as well (with turbocharging). At partial throttle operation, efficiency does drop for gas motors, but with direct injection and well designed pistons, you can get close to diesel using “conventional” piston engine design.
Go to technologies like HCCI, and you can sit pretty close to a diesel in most conditions, and better!