Most people don't worry so much about thermal efficiency and care more about cost per mile..
If I could buy a type of vehicle that was only 10% thermally efficient but the fuel was practically free, that would be pretty cost effective even if not thermally efficient.
It would want to be either a _terrible_ coal plant or a _terrible_ transmission network or both. Internal combustion engines are brutally inefficient next to big thermal plants.
If it's 100% coal, then yes, otherwise EVs are better. And since the grids are moving to renewables all over the world, it will continue to get better.
Even it's 100% coal the EV's are generally better. But it's close enough to equal that you can bias the comparison either way through vehicle choice. The standard mechanism was to choose one of those horribly inefficient compliance vehicles manufacturers created by putting an electric engine in a gas car frame. "It's a fair comparison because it's the same car". Choosing an EV 1000 pounds heavier than a purpose built EV will make the gas car look good.
I mean, EVs are supposed to be cheaper than ICE vehicles. They probably would be if EU didn't let its automakers manufacture a high margin market again by blocking more affordable competitors