imo the scooters while more portable and cheaper.. at least the examples i have access too.. lime/bird etc. have a problem due to hard low diameter wheels. They can get hung up on random gravel or small sidewalk 'cliffs' leading to potential over the handlebars ejection.
I went with an ebike for my neighborhood 'runner' (i don't currently commute).