They’re both good rounds I’ve been killing deer with the same 270 my dad gave me for Christmas when I was 17. I’ve killed a ton of deer, coyotes, beavers and other varmints with it.
On larger game, shot placement is all that matters. You can kill deer with a 17HMR if you put it in the right spot. And a 22lr was supposedly responsible for killing an elephant once.