I voted Glock, but only because I've never had the good fortune to fire an XD. My Glock, a Glock 27, has had its problems. Recently I have had it lock back on a round three times and I have had the slide lock up on me to the point where I could not field strip it. I have pinpointed the problem to the trigger safety, which has locked up due to (who knows? my guess...) carbon buildup. In any event, I have a friend checking it out.
Glocks are (allegedly) stupendously reliable, but mine has left me a bit unsure. This after five years of owning it.
My personal favorite at this point is the SIG P239 in 357 SIG. It has had nary a failure to feed, and for me it's like shooting darts. But that's not the question you asked.
I think that my Glock is a phenomenal gun, but as you might expect I cannot make up your mind for you. That is your call, entirely. By the poll the XD wins. I'd like to try an XD in the near future, but who knows? In any event, I think my particular problem, minor though it is, is an aberration, I heartily recommend a Glock.