Counting only electricity production when you are talking about CO2 emissions is dishonest. Cars also emit CO2.
It’s just not true at all, lol. Even by this way more useful metric France is doing quite well, substantially better than Germany for example. People are using this metric because it’s just useful while electricity footprint is only useful when you’re talking about very specific scenarios (like, how long until a BEV emits less carbon than an ICE).
About 50% of the primary energy consumption in France is low emissions.