Both are great. Can't go wrong with either, just personal prefference. I love Glock and have the G27 as my EDC. Just go with what feels best to you and which one you enjoy shooting the best. Both will serve you well.
Reason I'm leaning towards the XD is because of the safety in the handle..I want to carry chambered and feel a little safer having that safety in the handle..They both felt good in my hands and I've heard nothing but great things about Glocks...going to be a tough choice, but I'm sure I will be happy with either. Thanks for the replies so far!
Shoot them both before you make a decision. Both felt awesome in my hands and super comfortable but when it came time to shoot them, I couldn't hit the broad side of a barn with an xd. Also as far as the grip safety is concerned, get a quality holster and it shouldn't be a concern.