As you have already stated, the best carry gun is the one that a person can safely and accurately shoot and one that is comfortable enough to carry . I would add - A gun that the person has the most confidence in.
I added that because many years ago, I carried nothing but 1911’s off duty. One in particular was so fickle and unreliable that I never carried again. I lost confidence in it and always had doubts about being able to use it to defend myself.
So what’s my favorite carry gun? Well, in Florida in the summer, mine is the Sig Sauer P365 due to it’s slim dimensions and deep concealability. I compared it to what Glock had to offer and to me, having 12+1 available was the deciding factor over the Glock.
However, in the cooler months, I go back to the G19 - my most favorite carry gun.
Stay safe out there.