With the best loads it is a virtual tie in performance. I have both, but always reach for the Glock 10mm. My Glock 20 is shorter than a 3" revolver and almost a full pound lighter with 2.5X more ammo. There is nothing that small that comes close to the power and ammo capacity.
As a trail gun the 10mm makes a lot of sense. As a hunting gun a longer barreled revolver will beat the performance, have a better trigger and longer sight radius for improved accuracy.