Well, I wouldn't bury a gun in sand, drag it through the mud or soak it in salt water, so I don't really know exactly how the two stand up under extreme circumstances. It seems to me that a lot of people buy Glocks because it's a household name like Kleenex or Saran Wrap - and not necessarily because Glocks are any better than many other available handguns. Many people will site the torture tests performed on Glocks (as mentioned above), but honestly... who in their right mind would do that to their gun. Some might point out that you CAN do that to a Glock... I would point out that no one does, so the tests are somewhat useless for someone like me. If I were a deep sea diver or arctic explorer, then sure, I might favor a Block. But I am a normal dude carrying for self defense, not to show how extreme my gun is.
You are hopefully going to carry your gun (or keep it close to you) 24/7, so what really becomes important is how much you like the gun, not what some wacko did to it to show how "Mountain Dew" extreme it is. You need to LOVE your handgun, be obsessed with it, caress it and maybe kiss it. If you don't have strong feelings for your handgun, you will find that it gets left behind a lot (somewhat like that really annoying kid in middle school).
If, and only if, you find that you like the Glock the best of all the other guns you have tried, should you buy one. However, please remember that there are many other manufacturers and models out there that can hold their own on the reliability scale right next to a Block.
The XDs are very reliable.
Kahr arms makes a number of guns that are good, the problem is the capacity of the Kahrs (usually 6+1) and the lack of a safety; plus they are pretty spendy.
Go to the store, pick up a lot of guns, try them out, have the clerk show/tell you how they disassemble and what he likes/dislikes about each of them. If he looks annoyed, go elsewhere. If he doesn't know about the gun, ask to read the owner's manual or do so online - see how complicated the gun is, check out warranties, etc.
I really hope that you buy the gun that fits you. Like they say in Harry Potter, "The wand chooses the wizard." That seems to apply with guns as well.
Best of luck, now go do your research.