I have no experience with the XD. While I've not owned a 23, my primary handgun is a 22 (larger framed .40) and I can attest that Glocks are very user-friendly to learn with. The absolute best thing you old do on this decision is go to our local un store and handle both of them. Ideally, rent both at the range and try them out.

Some people think they're ugly...but IMO that's just crazy talk. They are excellent tools,are durable as all get-out, and will work through jut about any abuse you can dish out to it.

I agree with Charyoutree, handle them and try them out if you can. I like the Glock better than the XD and have the G22, G23 and G27. Any of those would be good choices with the G23 just about ideal. Try to handle both Gen 3 and Gen 4.

__________________
______
The biggest issue with assembling an AR isn't so much getting the parts together right - it's getting the right parts together.
________________________________________
US Army 1966-69, VFW Life Member, Retired Geek

Smith Wesson is a good manufacturer. But for some reason I do not like the m&p line. I think it's the trigger. Just don't fit me. But that just my opinion. Try em and see what u like. I prefer glocks, Hk (too expensive though). And sig.

I've owned alot of handguns over the years, The one that never leaves my hip for my CCW is my "baby" Glock 27 .40 cal. This little powerhouse is easy to conceal (and smaller than the XD) and is deadly accurate!!! Check this out-

XD has extra safety features that are intrinsic. Grip safety was a huge plus for me. It negates any chance of accidental discharge while you reholster as long as you don't hold the grip while doing so. Most glock ad are done putting gun away.

Striker indicator and raised chamber indicator are nice extras but not deal breakers.

I guess plus for glock is bore axis...but ill take extra safety every time. Plus 1911 grip angle much better for me.

I agree I don't care for m&p much, liked my buddies xp alot, I have got really good at the range with my G27 so it's what I prefer to carry for total reliability. It's like shopping for anything- like shoes, try them out by renting at the range, and see what feels good! Good luck bro!