I voted both. I don't see you going wrong with either one.
Decide which one feels the best in your hand and that you would feel most comfortable using so that you will actually carry and use should the need ever arise.
I can tell you all day long to go with the Glock based on how it feels in my hand. However, you may think it's too bulky in your hand and prefer the XDM or vice versa.
NRA Certified Pistol Instructor, Home Firearm Safety Instructor, & RSO
On the range again, just can't wait to get on the range again. The life I love is shooting guns with my friends, and I can't wait to get on the range again!