Of course, since that's the only way it can work, there's no point in excluding the fuel, so ic is far more efficient, which is why it's won.
I'm afraid its not that easy. Electric motors and batteries are up against fundamental physics in a far more restrictive way that ic engines ever have been. As I said, they were equal and often better a century ago, but it was the severe restriction of the basic physics that left electric far behind. The progress on motors has been relatively small over the last century, despite the large amount of effort that is put into electric transport. It's a mistake to think of the limited research into cars and bikes as representative, diesel electric and pure electric on railway and light rail (tram) systems have been continuously developed for three quarters of a century and still are being.
Batteries are likewise getting quite close to the limit of physical possibility, the fundamental physical laws can't be changed, and that's why loopholes like rapid battery changes to give range are being explored. That's not improvement or greater efficiency, it's just a way to avoid an insoluble science problem.
.