I was chatting to a mate yesterday who has the trek fs SEVEN ( 2018) , and he was comparing it to our local shops 2018 levo fsr demo bike, Nb these are australian spec bikes so speed limitted to 25 k , and they are being ridden by hard core mtb riders
He commented that the specialized seemed to accelerate out of corners better, felt more " punchy" ,, and able to maintain better speeds when ridden above the speed where the motor cuts out- but it's hard to know how much of this relates to his modifications to the trek ( 160 mm fork, higher bars - ie modified for better downhill performance)
Specialized was also slightly quieter, but " not that much better that I'd change"
So I'd be very surprised if a trek FIVE compares favourably to the specialized , but if you never ride the specialized is that really a problem? ( aka, a supportive local shop is a valuable asset)