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.