This is mostly the US because the externalities aren't taxed. In EU the taxes on gas are much higher. With VAT and everything Sweden currently has $4.5 per gallon, down from $5.8 last autumn, this makes any electric car much more compelling.
Sweden also has numerous tax breaks for buying electric vehicles, and does not properly tax the externalities of producing electric cars (running/refueling EVs, however, has very minimal negative externalities)
It depends greatly on the ICE car and driving assumptions. For someone who generally only makes short trips, a plugin hybrid is going to be a more environmentally friendly choice long term, given the significant amount of emissions needed to create the batteries for large range BEVs.