I can't really compare the two guns, as I have no experience with the Springfield XD. But I have owned a Glock 23 for about 8 years and believe it is one of the most versatile and useful guns I have.
I bought mine used from a previous owner who had run the gun through Arotek in Washington to hard chrome the slide and add extended slide stop and magazine release, so it is somewhat customized. I have shot it quite a bit at the range, and it has been 100% accurate and reliable. I have carried it in the past, and it conceals very easily. I like the thought of 13+1 rounds of .40 ammo in a 24 ounce gun with no sharp corners. Right now I use it as my bedside gun, as it has night sights.