Diesel is more like 3.175 (25%) due to the inefficiencies of small heat engines. You're throwing away like 3/4 of the energy as waste heat. Electric motors are >95% efficient and lithium batteries are in the high-90s percent efficient.
Electricity is already low-entropy, whereas energy from burning petrol is high entropy and thus contains less useful work.