I own several Glocks. (17, 19, 26) They're very serviceable pistols, although the Gen 1 G17 is sensitive to limp wrist failures.
I recently decided I wanted a G19-size 9mm pistol that was optic ready.
I got myself an S&W M&P 2.0 Compact. It points much better than the Glocks, has a noticeably better trigger, and in several hundred rounds of assorted ammo it has been 100% reliable with no malfunctions whatsoever, even when I deliberately tried to induce a "limp wrist" failure with a bent wrist and the loosest "two finger" grip I could manage without dropping the gun when I fired it. I put on a Holosun 6 MOA green dot sight and it comes up right on target, I don't have to "hunt" for the dot.
Although the stock trigger is better than Glock, I may put in an Apex soon - I tried a pistol with one and it was on a par with a nicely tuned 1911.