Electric cars are even worse: they typically don't achieve carbon parity with same-class ICE until about 70,000km.
This was discussed recently here on HN, I'll try to find the conversation.
Edit: here's the conversation, with link to source:
https://news.ycombinator.com/item?id=24716921
It's about 50,000 to 112,00km depending on the source of electricity used to charge the electric car.