The Machina has hubgearwhich is the main feature.
The Scott has better motor, suspension fork against rigid fork, wider range of gearing compared to the P5, a very useful frame lock and rack.
The rest is about same, hydraulic brakes, mudguards, lights, pedals, kickstand.