I've been riding motorcycles for more than two decades, bicycling for more than four decades, ebikes for more than 15 years.
For the last 10 years I've been commuting in NYC metro, with motorcycles, bicycles & ebikes.
I also ride my motorcycle back & forth between my residence from Brooklyn to Valley Forge, PA (120+ miles one way).
Besides the obvious of vehicle licensing, registration & mandatory insurance on motorcycles, ebikes don't require parking space.
If you can properly chain up an ebike up to something solid, that would be enough for theft deterrence.
There is a wide spectrum of pricing in ebikes.
Depending on your budget, distance would want to ride, how heavy you weigh, and the speed you want to travel; that would determine the type & cost of ebikes you might want to consider.
Personally, with my 12 mile, one-way commute in NYC, I've operating an ebike that's below $1.5K for the last 2 years without issues. Only charge my battery once a week with top speed of 25-28 mph. Solid wheels, fat tires, no broken spokes, no flats.