I'd encourage you to try a new P365XL.
I had mine at the range, alongside one of my G17s, one that has had the "25 cent trigger job" which is really just a polish of a couple of critical surfaces. That G17 has well over a thousand rounds through it since the polish and has one of the best stock triggers of any Glock I've shot. It's my range/competition* gun.
In a side by side comparison with my relatively low time Sig, I didn't think that the Glock had a much better trigger. I thought the Sig trigger compared quite well.
I'm a fan of the P365XL (flat trigger face, slightly longer slide and slightly bigger magazine over the P365) and I had shopped the 43, 43X, and 48. I own several Glocks and like them.
But the combination of size, magazine capacity, ergonomics, red dot and yeah, trigger tipped the scale in favor of the more expensive Sig P365XL.
I looked at a Glock blue label 48 and 43, so, decently priced in these times. I was very lucky to have found the Sig, a P365XL with the Romeo red dot, for the LEO price. I paid $596 + tax, and they go for nearly $900 in local gun stores...if you can find one...
*This isn't me crowing about my experience, just me describing my gun. I was just starting to get into competition shooting a couple of years ago, and have a whopping two competitions under my belt. CV-19 ruined this last year. I shot my H&K USP Compact .40 the first time out, but there was no points advantage for the .40 over the 9mm, the 9mm is faster on follow up and subsequent shots, and the Glock capacity was an advantage (17+1 vs. 12+1 for the H&K). I've bought the holster, etc. for the G17 with the intent to shoot more competitions. I wasn't very competitive but but I wasn't the worst shooter out there and it sure was fun. I'm shopping new sights for the Glock, because, while I'm fine with the stock sights, there are some set ups that are better for quick acquisition. Sorry for the detour. I am a Glock fan, and wanted to be certain that my comments weren't interpreted as anti-Glock.