I've bought guns that didn't fit my hand well, such as the 1911, which I love to death.
on the other hand I've bought guns that fit my hand like they were custom made for me which I tried to love only to finally give up and sell... the Canik TP9 comes to mind.
there is more to owning and loving a gun than "fits your hand" but it does make it a heck of a lot easier moving forward. I currently own 6 handguns.
1. springfield xdm45 compact, I did not like the way my pinky dangled when I first bought it, after a few hundred rounds through it I'm not even phased by it and for years it was my most accurate handgun.
2. Ruger SR9 Compact. I bought it at the same time as the xdm. I liked that it had higher ammo cap than the xdm, it had a fing groove extension for the low cap mag which fit my hand much better, and it shot 9mm so it was much cheaper to practice with. despite all this, and the way higher amount of ammo I've put through it, it's still not as accurate as the XDM nor as high up on the list of guns I like to shoot.
3. Ruger 22/45. I like the grips, they fit me better than most other 22/45s(the rubber overmold styles). despite this, I still shot the old styles better. so I traded my upper for my brother in laws upper thinking his upper on my frame would increase my accuracy and allow me to keep the good ergos, didn't work, he still has the more accurate gun.
4. Springfield 1911. it is now the most accurate handgun in my collection. the 1911 does not fit my hand nearly as nicely as other guns in my collection, and I don't like 1911 controls location, but I still love to shoot and see those tightly packed holes in the target.
5. Springfield XDS9 4". does not fit my hand well at all, and I can't shoot it as accurately as other handguns, but the overall package is something that I am looking for, a single stack handgun that I can easily carry concealed, fires a cheap cartridge for practice, manages recoil well, and has so far been 100% reliable.
6. Ruger 9E, identical to my SR9C only with a full length grip, and cheaper finish. it fits my hand like a glove, is reliable, and shoots very accurately. despite all this, it's not my favorite and I have no emotional investment in it at all. it's likely going to serve as a loaner/trainer.
as to the "glock reliability" I've seen more glocks fail than any other brand of handgun, bar none. granted, every random idiot you run into at the range packs one because the guy behind the counter always makes the recommendation, but it still does not scream reliability. I shoot them well, but they do not fit my hand at all, and that matched with the number of failures I've witnessed, and experienced(plus the whole brass to the face thing) is enough that I will never purchase a glock of my own free will, and will never recommend one unless a person has at least explored other options. I was just getting into firearms when the gen 4 glocks were jsut coming out, this forum was filled, daily with new threads about issues with the gen 4 glocks, issues which eventually led to a recall, but never mention that to a glock owner, some are known to flip out on you. god forbid you post about a glock regularly failing to feed, they'll slap you with accuzations of "limp wristing" faster than you can hit submit.