My comment wasn't necessarily addressing cost as opposed to how to calculate efficiency. Cost gets much weirder. Nobody can accurately determine the price that anyone else pays for electricity unlike gas, because solar and time of usage exists not to mention the percentage of time home charging comes into play. Washington Post ran a pretty good article on this recently.
Either way ignoring cost, the EV will always be more efficient. That doesn't mean it will always be cheaper.