Hydrogen is a more realistic choice. I.e. it's known to be possible, and CAN be generated from water and electricity.
There are lots of problems with it, but there are known plausible answers to those problems. (Except the ones about expense. This requires different engines on the airplanes.)
The easiest plausible answer is synthetic kerosene. This is doable, and requires feedstock of things like methane. It CAN be done in an approximately non-polluting manner. Expect this to be MORE expensive than the hydrogen approach at scale.
The processes involving things like food waste will always be non-scalable, because the feedstock it to varied. (Well, you could compost them anaerobically and pull off the methane...but doing that at scale is both difficult and inefficient as a source of methane.)
Batteries are too heavy to be a suitable replacement for air fuel This is true even of Lithium batteries. There *do* exist short range electric airplanes...but I expect them to always be :"technical tour de force demonstrations".