When I was shopping for a semi auto I decided on the .40S&W caliber. I went to a gun shop that had a range and rented 4 different guns. Price was not too big of an issue because I figured I would be keeping the thing probably 10 years or better, so If one gun was $500 and another $800, it was no big deal because I would rather have something that I liked for 10 years, than something that I just settled for. I rented a Springfield, a Sig Sauer, a Glock, and a S&W mp. I shot 50 rounds through each, and I did better with the Glock than the others. Maybe it was the trigger, or grip angle, or sights, or weight, or whatever. I just decided not to argue against what worked well. The next gun was a Glock23c.
I became interested in CCW, so the next gun was a Glock 27. It turns out that I seem to shoot the 27 better, so I just put the G23 up for sale. I have other Semi autos as well, like the Walther P22, (.22lr), and the Beretta Nano, (9mm), but with these I get constant feed problems. Neither of these were cheap when I bought them, so it makes me wonder about the quality of their companies other offerings.
With the Glocks, they just go bang every time, until the ammo is gone. It is like having a girl that may not be so pretty, but boy can she cook.
I thought I would add about accuracy. Maybe I got Hitchkock45 itis, (from youtube videos), but I believe what he says is true, any modern gun will be more accurate than the shooter. Maybe one brand of gun is so light that you pull off target, or flinch because of more recoil, or maybe the trigger just doesn't suit you. But it is not the gun. That is why I never tell anyone what they should get. Find out what shoots best for you, because none of us can tell you what that would be. So for me personally Glock just works well. Would I buy a different brand in the future? Sure if it had earned a reputation for reliability, and Glock didn't make one, (like a single stack .40 S&W).
Happy hunting!