XD-40. I cannot say enough good things about mine. It has at least 2,000 rounds through it without a single malfunction. As others have stated, it is very accurate for a 3" gun, in fact I think I shoot better with this than my full-size 1911 and Beretta 92! I have shot the Glock 27, and although it functioned well, the trigger guard kept slapping my middle finger in a weird way. I've never gotten along with Glock sub compacts, they just don't fit my hand very well.
My XD-40 SC goes with me everywhere. I conceal it in an IWB holster when I wear a long shirt or coat, I throw it in my backpack when I'm at my office, and it sits beside my bed at night with an X-treme Mini light clipped on the rail. (The Glock does not have a rail). Anyway, the XD is durable, accurate, extremely reliable, and comfortable to shoot. You won't be disappointed.