I agree that it is completely up to the shooter. I own several S&W and Glock pistols. Both brands are of great quality. Yes, there is a price difference.
When I purchased my first pistol, I went with the Sigma SW9VE 9mm based on the price. The Sigma was $279 and the Glock was $500. I always wanted a Glock but at the time, I couldn't justify the price difference and being a novice to guns, I purchased based on the price since Smith & Wesson has a good reputation just like Glock.
One thing, like I mentioned, I always wanted a Glock and a year later, I purchased my first Glock. So there you go, if I had not based it on price, I would have purchased the Glock first. I now own several of both brands in different calibers and like them both equally. The only thing in the Smith & Wesson is that it does not have the finger grooves like the Glock. I put a Hogue sleeve on it and if feels right. I actually prefer the sleeve because it will not slip out of my hand.
It is ultimately up to you. If they both cost the same, which one would you buy? IMO, that is the one you should go with.