Diesel generators waste about 65% of their energy output.

Solar wastes almost zero. That's why it's so much cheaper.