depends. past 50-75 yards 17hmr starts losing gas fast. 22wmr will down yotes easily at 150+ yards from a rifle. 22wmr is more widely available although 17hmr is pretty common nowadays.
i would consider 17hmr for pest critters like racoons possums skunks at short range at best. other than that target shooting and plinking.
22wmr is good for yote sized pests at longer ranges. i consider the 17hmr on par and capability with the 22lr. i still give the 22lr a slight edge. 17hmr, i think, is a solution looking for a problem.
if i had to pick one i would go with 22wmr, more versatile.
"Gun control: The theory that a woman found dead in an alley, raped and strangled with her panty hose, is somehow morally superior to a woman explaining to police how her attacker got that fatal bullet wound." — L. Neil Smith
The problem with being stupid is you cannot simply decide to stop doing dumb things...
"I crapped my pants to avoid the draft!!" -Ted Nugent