One of the biggest advantages of combustion fuels for aircraft is that they lose weight as they’re consumed. Batteries don’t do that, so you’re stuck hauling the dead weight of all the drained cells for the entire trip.
Airlines optimize to such an extent that they include only the fuel needed to reach a destination, including a safety margin, so on short-haul flights the tanks are mostly empty at takeoff.
I think electric planes could be made to work fairly well for those short flights because the batteries could be kept small. But for long flights the deadweight is going to be a huge problem!