I have owned the SA XD 9, Sub Compact 9 and the Glock 17
My vote, a Glock 17 for three reasons. The XD grips is a bit small for my hands and the Glock 17 can actually hold 33 rounds via the Glock 18's magazines. Non of these 3 pistols ever failed me, so in terms of reliability, I hold them equal. I did note one "problem" with the XD magazine design when using the "grip extender". One can easily insert the magazine backwards. When I bought my XD Sub Compact, the salesman did so. He bent the magazine's front edge, which in turn lead to feeding erors. Once straightened, it was fine again. The Glock magazines do seem more durable. But, all the same, I am NOT a gun expert. This is only my opinion based on very limited experience. But, I did sell my XDs and kept a Glock 17 "American Heros" limited edition...very sweet.
Doc2005