My preference is my Bolens gas powered lawn mower that has run perfectly (starting every time) for over 15 years. It has only needed one part in all that time. It's the best!
I would not like a cord trailing behind. It would terrify me that it would get run over or I might die trying not to run over it.
I have no thoughts about battery powered except I kind of don't like the idea, but I have no idea why.
I said "I" way too many times in this post, but it seemed not to be helped. My apologies for that.
We first had a Bolens that was his father's. His father had it for 20 years. We had it another 20 years. If finally gave out so we gave it a good sendoff. We now have a gas 25-year-old Wheel Horse, gas a Troy-Bilt, and a diesel 4WD Simplicity (I think that's the name) from the '90s and 3 gas push mowers. They are hubby's sort of hobby. Any time people get rid of their lawn mowers. trimmers and chain saws, they come here. Usually they don't work and he gets them going again. He has 9 chain saws and uses every one of them depending on the job and he uses the lawn tractors all the time, too.
We tried a battery powered trimmer but it didn't do a good job and the battery had to be charged before the yard was done. One of the trimmers was electric but the cord was so sort he had to use a real long extension cord. He said ne didn't like that. It was a pain.
If you have a small yard, battery and/or electric would probably work for you, but not much larger. Maybe you'll get some input for others with different experience than ours.