Can't go wrong with either one. For my personal taste I like the feel of the Glock better. Try em both pick what feels best to you.
I think the XD is a great fun and they usually come with a few nice accessories right out of the box.. Ie extra clip, holster...
Either is a well-built gun. Personally, I have the XDm 40 and love it; but Glocks just feel awful.