Not sure but I was thinking of the Ruger model 19100 and adding to it
https://ruger.com/products/pcCarbine/models.html
The S&W would be a 10305, adding a red dot site to it and that's it for now
https://www.smith-wesson.com/search/node/10305
Hope this is in the right forum
Thanks
Hungry
Regarding you post about range, the 9mm carbines out there IMO have a range window of about 200m max (obviously 9mm will go further, as will anything, but 200m is about the range where the velocity/lethality/accuracy/trajectory tends to have a large drop off). The Smith M/P you're posting about is a 223 caliber rifle/carbine, as opposed to the Ruger being a pistol caliber carbine. Huge difference between the two, but there is a place for either, or even both.
One other option you might consider is the Beretta Storm pistol caliber carbines, especially if you have a 92F handgun, or plan to get one, as the magazines the Storm takes are Beretta handgun magazines (which can be found inexpensively).
IMO if $ isn't a real decider between your 2 choices in the OP, get the AR platform .223 Smith rifle/carbine. It'll be a bit more expensive to shoot, but you gain a lot of accuracy, range, lethality, and the piles and piles and piles of aftermarket things you can add/do to an AR platform rifle.
FYI Reid Henrichs, the owner/instructor at Valor Ridge shooting school, has been running that same Smith M/P AR rifle for a year or two in many of his classes, both taking and teaching, and has a few K rounds through it, and it's run great for him (you can search his YT channel as he has a video about it specifically). Be sure to budget for some extra magazines, ammunition, sling, and a mounted white light (very important on any rifle you plan on using for anything other than day time range plinking).
edit - Video in question about the M&P AR15
https://www.youtube.com/watch?v=GKlS6O_AgWw