I don't have a Gen 5 Glock, but I do have Gen 2, 3 and 4. I also have a PPQ M1 Navy. The Walther replaced my Glock as my go-to for IDPA and 3 Gun. I find it fits my hand MUCH better (I have small mitts), it is VERY accurate, and the stock trigger is as good as tricked out aftermarket Glock connectors.
The PPQ went toe-to-toe with Glocks on tortuous courses in the States. It is every bit as reliable.
The Glock does have one advantage: it is ubiquitous. You can find many holsters, people have mags to borrow at matches, etc.
Really you can't go wrong.