I have both am ev and an ebike, and a 7 mile commute.
Driving takes between 20 minutes and an hour and a half. Biking takes 45 minutes no matter what.
Car uses about 25x more energy though and parking is around $20/day.
I should add my son much prefers the bike.