I have owned dozens of pistols and revolvers over the years including Glocks. I can say two things about them. They are very well made pistols, and you can either shoot them well or you can't.
I had a Glock 23 and a friend of mine had a 19, I could not shoot either as well as I can other pistols and revolvers. I tend to favor revolvers when it comes to accuracy myself. So my advice is Shoot the model you indend to buy, make sure you have a feel for it.