If I'm shooting at paper, or shooting varmints from a rest them the 17 HMR is best no questions asked..
But when in the field and shooting with out a rest the 22 mag wins every time, it is more accurate than I am capable of. I have even killed a hog with mine about 6 years ago, riding through a friends farm we saw a 125lb hog under the oak trees about 75 yards from the truck, leaned across the hood and placed one in his ear. He was still kicking when we got to him, put one more in his ear from 10 ft and it was over. This doesn't mean it's ahog gun by any means, but it sure is a better field/do it all gun.
I carry a 22lr most often though, most shooting done for practice and it is cheap and will kill most verman I come across.