G27 and then G26 was my duty backup for years. Nothing wrong with either one. Two years ago I borrowed and then bought a P365. It has been my duty backup since that time. I now have a P365XL as well. My first P365 has somewhere over 2000 rounds through it. I changed the recoil spring somewhere between 1000 and 1250. Not because of any failures. I don't wait for my brakes to fail before I replace them, same with recoil springs. I have done nothing else to it. No titanium firing pins, no super cool 5 color cerakote paint and stipple, no futuristic hand carved slides. Just the out of box gun with one recoil spring change. Occasionally I get my stupid thumb in the way and keep the slide from locking open on an empty mag when shooting rapidly to empty. Other than that I have had zero issues.
I shoot it better than the 26. I hit with it as well as I do with the G19. I could never say that about the 26. It is easier to carry than the 26 and mine has been no less reliable than the 26.
I still have a 27 because it was my fathers before he passed, my personal 27 and 26 are both gone.
I would do my best to shoot both before you buy either, and then buy the one that works for you.