The subcompact Glock 9/.40 model size is my favorite among the entire Glock pistol line ... but that's because I only originally wanted them for small off-duty weapons and I didn't have any need for any of the larger models. I had/have other larger pistols which I prefer over the compact & standard Glock models. That's me, though. Other folks can also choose as they will, for their own reasons.
That said, the diminutive G26 is a fine little gun. I own a couple of them (and one G27).
It's not my "favorite" smallish 9mm pistol, nor is it necessarily the most ergonomic, balanced or most accurate 9mm I own, carry and use. It does well for what it is, though, and for my own needs. It's relatively simple to repair (as an armorer), with parts commonly available, and if I ever actually had to use one of them for lawful defense ... and it were taken into evidence/property for some amount of time ... it's relatively easy to find another one that looks just like it and replace it.
I have other smallish 9's that I prefer to use when I want to derive a little bit of extra "enjoyment" in my range practice sessions, though, such as a 3913, CS9 & a SW999c (both have grip ergonomics that are preferable to me, both have "better" triggers for my use, and they've shown themselves not to be as "sensitive" to grip technique as the Glock ... in my hands).
I had the chance to compare a M&P 9c to my G26, G27 and M&P 40c. Eye opener. Surprising in a nice way. If I'd tried it before I'd ordered my 40c, I'd have opted for the 9c instead of the 40c ... and wouldn't have ordered that second G26.
Now, all of that having been said ... and even owning a fair number of smallish 9's, .40's & .45's that I've carried, trained and qualified with over the years ... I carry (and train/practice with) a number of S&W J-frames more often than not.
Why? Because I'm retired and I'm no longer being sent to, or are out & about looking to find, active (or suspected) crime scenes where I'm expected to take an enforcement action.
I'm now free to take active steps to avoid being around trouble, and places where trouble is likely to occur, and it's going to have to try really hard to find me.
The J-frames suit me rather well for my daily activities, and being a long time revolver owner & user (I used to carry revolvers on & off-duty for some years) I've practiced to maintain my DA revolver skillset (shooting, loading, etc). The J-frames are more suitable to the range of pocket carry circumstances I find convenient, too.
Sure, there are still going to be those situations and anticipated circumstances where I'll slip on a belt holster, or use a larger pocket holster, for one of my heavier & larger pistols (or I just feel like carrying one sometime) ... but most of the time one of my several J-frames is carried.