50 grain .22 Magnum is capable of reliably killing coyote size animals out to 125 yards, I have seen it done.
The .17 HMR does not produce terminal effects great enough to do the same, at least I have seen it fail several times on coyote at similar distance producing nasty surface wounds without killing.
.17 HMR is a wonderful target round out to 200 meters, it actually bucks the wind better than the .22 Magnum and can produce very tight groups.
A neighbor of mine uses a Savage in .17 HMR to shoot turtles that infest his pond and does so from his back deck, the distance is just shy of 200 meters.
My buddy swears by the .22 Magnum and doesn't own a .22 long rifle of any sort.
His Rimfires are an old Erma lever action and a Smith and Wesson M48 6" revolver.
Me, I like .22 Hornet, .223, and .243 because I can reload them.