Never compared the ballistics between 17 HMR and 22 mag. I have been contemplating a rifle in .22 mag but I have a Savage Bmag that I may re-barrel and soup up simply because it has a flatter trajectory and distance than .22 mag.
Ultimately, if punching paper, the .17 WSM is better than .22...