Personally, I don't think you can even compare a Glock to an XD or XDm. The XD is head and shoulders above the glock in fit, function and safety.
That said, go to a range and try both, also try an XD, see which one works for you, which one fits best in your hand and you're able to shoot well.
If the pain is lacking so is the discipline...
"the only 911 call I need is chambering a round" - Mr. Muller, MO car dealer