I posed a very similar question a few months back:
https://pistol-forum.com/showthread....-vs-Preference
Based on a lot of the feedback I received there, I focused on a single pistol type for a solid month (2 range trips a week, 150 rounds max per trip) and compared the numbers on the things that were important to me. Then I performed the same drill with the 2nd pistol type over the course of a month.
There were/are a lot of things I like about the G17, but the P226 is a better handgun for me and documenting my testing & effort really made the choice easy.