While there is no question that disk brakes are superior to the caliper rim variety, the debate over hydraulic disk vs mechanical is a matter of preference & opinion. Both work equally well IMO but there is a distinct difference in feel.
When shopping for an ebike at my local LBS a while back, I had the opportunity to do a side by side test comparison. I stood between two Pedego Interceptor ebikes. One was the Platinum version with hydraulic disk brakes and the other was a standard Interceptor with mechanicals. With my hands on the levers of the front brakes of both bikes, I worked them simultaneously. There was a distinct difference in the feel. The mechanical had a slightly spongy feel where as the hydraulic had a positive stop feeling as the pads touched the disk. The difference was slightly worse with the mechanical rear brake but exactly the same with the hydraulic. I suspect this is due to the longer cable length. I'm 6' 3" and at 260#, I noticed absolutely no difference in braking performance when test riding both ebikes.
Based on this test, IMO, if you're comfortable with the feel of cable actuated caliper / rim brakes, you'll be happy with the improved performance of mechanical disks since the feel is quite similar. In my case, I preferred the positive feel of the hydraulics considering my weight and the higher riding speeds of the ebike.
Obviously, these results may differ with other brands. If the mechanical vs hydraulic issue really concerns you, I suggest you do your own comparison before buying.