Having had both, the clear winner in my opinion is the e-bike.
A tried and trusted mode of transportation enhanced with a motor vs. a razor scooter on stimulants, seriously, I have no idea how these things are street legal. Even a small pothole has the potential to send you to the concrete because they are basically skateboards with a tiny little handlebar.
They are also a lot less comfortable for anything beyond a 5 minute trip to the bus stop because you can't sit down, and on most models you also have to constantly hold down the acceleration controls, which gets very tiring for your hand. A scooter is also entirely useless if the battery is empty, whereas an e-bike can still be used as a normal bike in a pinch, albeit with more exhaustion due to the greater pedal resistance.
Since I got my e-bike I haven't looked at the silly scooters once, literally like riding a bike downhill in all directions, even against wind. It also has room for some groceries which a scooter naturally doesnt. Definitely the more useful mode of transportation of the two.