But efficiency of converting sunlight into energy isn't really what this argument is about, since we're more concerned with the CO2 output than the energy efficiency. The efficiency of human muscles factors in though, as it is only around 20%, compared to electric motors and batteries that are over 90% efficient. Regenerative braking is a big win for the electric car too, since it reduces the impact of the car's higher mass a lot. And when you look at the CO2 per calorie emitted by coal (and of course the US grid emissions are much better than this since we use many other better energy sources than coal), you get about 1.1g per calorie for coal compared to about 4.8g per calorie for fruit. So in a carbon emissions sense, food can also be much less efficient than electricity, even when that electricity comes from fossil fuels.
No single one of these factors is enough to tip the scales on its own, and of course the numbers can skew either way depending on what kind of food you eat, what kind of electricity you use, and many other factors. But I don't think the comparison is a totally crazy one.