I've shot both the XDM and M and P a bunch. Both very nice guns but the XDM fits my big hands hand better. Now maybe that's just a function of which backstrap was installed, I don't know.
You are not going to wrong with either so I'd pick whichever fits best.