No, actually a generator is WAY more efficient. Especially if it’s close by.
I said better.
Refueling “way” faster, range from a load of fuel is “way” greater, and environmental impact from the total system is “way” smaller.