I did a similar calculation myself recently.
I sold my car for a profit given I was driving very little. The furthest I’d been driving most of the time was 3 miles away / 6 round trip.
I looked into an e-bike but it seemed to make more sense to get a motorcycle. The bike, title transfer, helmet and some gloves wound up being less than $3k.
I also decided it was probably safer to ride with traffic at 35-40mph than be riding on the side of the road at 20mph tops.