I have used both.The 22 wmr is an adequate caliber in skilled hands.The 17 is expensive to shoot and I wouldn't trust it against an enraged muskrat.At under 70 yds,I had a crow flop around for about 5 minutes,bullet enteredthe breast,exited the back.
Keep the shots relative to the 22Mag's range and you'll be ok with it.
Serious yote and fox work requires a little more snot.
Edge
Before its asked,the reason I use any kind of rimfire for yotes is that nite hunting is limited to shotguns and rimfires.