I’m mainly an Xd9 guy, but there is a big reason to go Glock: their mags are nearly universal, and entire other gun systems have been built around them, including the outstanding PSA AR-9 “pistol” which has the ergonomics of an AR, but in a 9mm blowback design. And it uses all Glock 9mm mags.
I have the XDM 9. Very accurate if you can see better than me.