By your post I assume you are new to handgun shooting, if not shooting altogether. If that’s the case then my answer is neither; look for a used Buckmark or Mk2 instead. You should be able to find either for $300-$350. Use the savings for ammo and range time as common skills (stance, grip, sight alignment, trigger pull, etc) will be your limiting factor for the first while and more gun won’t help you through that. The S&W 41 is a very nice firearm, but is more gun than you need for a plinker and a lesser gun than those on the competition scene. The Mk4 offers easier cleaning than the Mk2, but little else.
Since you mentioned 9mm I assume you are interested in centrefire and will progress into that rather rapidly. 9mm is certainly a good centrefire starting point once you have basic fundamentals down. While learning the basics all the 9mm offers over .22 is more noise, more recoil, greater likelihood of inducing a flinch and more cost.
Also, don’t discount the value of dry-fire or good instruction.
Welcome to the sport!