This is just my 2 cents. I have shot all of them and here's what I liked and didn't like.
Glock
Liked-the gen 4s come with adjustable back straps, a good trigger and handle recoil well. I have to use the biggest back strap with a beaver tail because of the size of my hands. Points well and the G17 is a very soft shooter.
Don't Like-took me nearly a year to get good with my 23 because of trying different backstraps and learning how to shoot a Glock because of grip angle.
XD
Liked-points well, shoots well, trigger is very soft and the reset is short.
Don't like-high bore axis and to me the trigger is "too soft".
M&P
Liked-shoots like a workhorse, decent trigger, and handles a 40 very well.
Don't like-in order to have a great trigger you have to order one. The price is good on them but you could spend $100 more and get a gun with a good trigger without having to have a trigger installed.
I'd also look into FNH pistols before you make your final decision. Rugers aren't bad either.