Both guns will be reliable. I've had an XD9 and XD45, never had a single issue out of either. As others have mentioned I don't care for the Glocks grip angle and they just feel like a brick in my hand. I also don't like the idea of the lone safety being on the trigger....doesn't make sense.
The XD has a few features that the glock doesn't and the goodies that come with the gun can't be beat for the money.