I have a G17, G19 and three XDs, an XDm 9mm (full size frame with the 3.3 barrel) an XD45 Service and an XDs45.
I recommend the G19 over the G17, just because so many people - including me - shoot it better than the G17. When the G19 was my EDC gun, I also carried a spare G17 mag, giving me 33 rounds.
But now I carry the XDs 45 most of the time with one spare mag. If' I'm wearing a jacket, I like the bigger XDm 9mm in the factory paddle holster. Either way, I prefer the XD platform over the Glock, but not by much.
You really can't go wrong no matter which way you decide. Glock sights are crap and should be replaced. I use TFOs. Both platforms are going to need trigger work, preferably good aftermarket parts installed and polished by someone who knows what the hell he's doing.