In terms of performance and cost between a DIY to factory ebike there is really no comparison. Makes no sense why ebikes in the US market are so underpowered.
Wish people would stop ragging about ebike battery recycling. Electric cars are being legally mandated, seemingly every other car manufacturer says they are abandoning petrol motors. Bike batteries are nothing in comparison to what all the cars will produce. If an ebike is used for even one errand a week that used to involve a car than there is probably a net gain.
We can only hope that the infrastructure to recycle batteries is coming. But who knows because it is easier to make laws than to pay for them.