I think that the .22 Magnum is a better choice than the .17 HMR for animals that weight more than +/- 10 lbs.

I haven't shot the .17 WSM, since nobody has produced a good, accurate, and reasonably priced rifle for it, but on paper it looks like it would be your best bet if you're limited to using a rimfire rifle.