Ebikes get better and better the more kwh and money you can put in, and the more regularly you use them. For a daily commuter $$$ bike where you need tons of range they are great. The ones where they are an affordable one and have a tiny battery pack, or if you only ride them once a week, they don't imo work out as well in those cases. The battery sits around peaked out at 100% for days on end waiting for you to ride. Or similarly you forget to check on the charger and it sits drained. Batteries don't last sitting at 100% or empty. One mistake and your hundreds of dollars out the pocket.
You can pickup a $100 project gas bike on offerup, and with a few parts and some knowledge have a fun bike. Try working on that budget with ebikes...
Its the same thing with garden tools you use only once in a while. You can let a gas trimmer sit in your shed for MONTHS unattended and the **** will just fire right up when you need it. With a battery trimmer if you let your battery sit dead or topped off for months the pack will not be happy. And those batteries are not cheap, at least not the ones for the powerful trimmers. Electric and gas, each has its place where it does well, and its going to stay that way for a long time in my opinion.