EDIT 1: Thanks for all the enthusiastic replies telling me that power generation is better optimized. Yes, I already understand power plants are much more likely to be better optimized than car engines. That's why I asked "how much" instead of "whether". I'm wondering if the difference ends up being something like 10% (by whatever the suitable metric is) or 30% or 60%. Numbers and/or references from actual data would be appreciated.
EDIT 2: Note that we also need to consider the energy loss in transferring the electric power and charging up the battery; it's not just about power generation efficiency. I don't know if this is significant or not.