Having had experience with both the XDm and the Glock, either one will serve you well. I don't know if you looked at a reqular XD or the XDm. I prefer the latter, personally, in every way. No experience with the M&P but I've heard good things, and hey, it's hard to go wrong with a Smith & Wesson.
'Merica: Back to back World War Champs