Muscular players with good skill & ability win the basketball game.
Similarly, we will happily have both sufficient power and torque to ride bicycle around all terrains. It is easy to understand that horsepower is a product of torque and revolution speed in a driving wheel. However we need a required torque on the wheel rim for going forward, regardless of force originated from same wheel hub or chain wheel at bottom of bracket on a bike.
In a word, E-Bike rider can go uphill if there is adequate force and horsepower of the driving rim mainly, no matter what torque comes from mid-driver or rear hub in a PAS or throttling electric bike.