So really the comparison is 7.5kWh of electricity compared to 21.6kWh of petrol. The Prius gets 34% of the miles compared to the Tesla for a given energy input. In the olden days when renewables didn't do much, the chemical energy input for 7.5kW of electricity was probably 15 kWh. So the electric car is a little bit more efficient (taking advantage of the efficiency of large power plants).
These days, thanks to renewables the fossil fuel input into the electricity is lower.
Also, natural gas to electricity in CC plants is ~60% efficient.
Interestingly thanks to renewables the "carbon intensity" of a kWh of electricity is already better than a kWh of fossil fuels in some countries. A kWh of petrol releases about 250g of CO2, and quite a few countries (predominantly developed ones) have lower carbon intensities per kWh of electricity. Considering round trip efficiencies the carbon released by an electric car in those countries is easily 1/3 to 1/4 of the carbon released by a petrol car.
In the USA it's not as good, but electric cars are still releasing about half the carbon.