Obviously glocks are perfect and you shouldnt buy anything else
I have fired both, granted not much, maybe 100-200 rounds through each.
I have fired several different guns, same models, and i find i like the XD better in every situation. Better trigger pull, little less recoil, providing better accuracy.
I would recommend the XD