If you plan on riding on anything other than perfectly paved and mostly flat concrete the ebike is much more practical.
Point is the ebike actually gives you exercise. Low impact aerobic.
An escooter has all the bad things without the good thing
I see them as fulfilling different needs. An e-bike lets you go further, faster, travel more safely on mixed surfaces, and carry more cargo. An e-scooter is smaller and more portable, making it easier to store in apartments, at work, or integrate into public transit.
I find the balance on them and the wheel size to be pretty unsafe for a lot of roads. Also, some of the hills here, I end up having to push the scooter up anyway.