Try out various ebikes! I use the Transit app which has a bike section that should try and put you on the safest routes in your city. If you buy a bike with a rack, get a pannier or two, they can carry groceries, laptops or beach supplies no problem. Many places with little car parking have bike racks, such as parks, beaches, and small businesses.
Invest in a good ulock or thick chain for protecting your bike! Doing a 20 mile trip to work could be a bit ambitious at first, but start with smaller bite-sized trips, and work your way up (or supplement it with commuter buses or regional rail, if there are options. Bikes + Transit go together!)