I say both....
Shotgun generally tequires less skill, close is close enough with #8 shot. Not at that messy either, pellets go in and don't come out. They work especially well if you have more than one target, once the shooting starts everything is in motion, being a beginners to harder to keep your head and make sure you get to the second target as fast as you can and remember to aim( and ditermine lead and so on) scatter gun is very forgiving in those instances.
Scoped .22 is my go to critter getter, it's semi auto and extremely accurate, it can routinely hit 1in targets out to and past 100 yards. Handled correctly it's a great tool and can increase range over the shot gun.
Shot gun for all nighttime encounters for nothing else but safety sake, .22 when you can see them coming and plan one good shot. I do some food work with a .22mag as well but you need a standard .22 first