For several years living in San Diego I commuted about 18 miles each way to work on my bike (I am retired now, so no longer commuting). At work was lucky enough to have a shower facility and could store professional style attire in my office. 18 miles got me good and sweaty (some good hills along the way). If I didn't have a shower available really couldn't have done this riding my bike. If I had to commute in wearing my work clothes an e-bike would have been a good solution, where I could keep my HR down, sweat less, but still get some exercise and get to work in a reasonable amount of time.
So much would depend on work conditions (what you where, can you shower, OK to smell, secure parking etc) and route you take, distance etc. I can see e-bike make sense in some cases, but not make sense in many more.