That starts with what you pay for electricity (e.g. 0.4€/100kWh in Germany vs. 0.05€ in Denmark).
But continues with how much CO2 is created. With the German energy mix, 1 kWh "produces" 0.434 kg of CO2 (tendency rising). Burning 1l of gasoline results in 2.37 kg. Comparing two cars:
Tesla 3 (18 kWh / 100 km, 80-90% efficiency during charging):
(18 kWh / (0.8 bis 0.9)) * (0.434kg / kwh) = 8.68 bis 9.765 kg (CO2 per 100km)
Toyota Yaris Hybrid (with E10):
3.9 l * (2.37 - 0.126) kg/l = 8.75 kg (CO2 pro 100 km)
Which is basically the same ball park.
To be fair, Tesla 3 vs Yaris Hybrid is an apple to pears comparison. But the argument that can be made is for a cleaner energy mix and smaller cars.