Several years ago, my brand new M&P40FS came through with both front and rear sights misaligned.
How the thing got past QC, I'll never know....
After running through the usual "new gun" tests, I noticed that....
Getting the front sight centered was a bear. The rear sight moved properly.
"New Gun" thing.... Sometimes you just don't hold the thing correctly - either out of inexperience, or too much experience

- being used to having a gun land in your hand "just so". First thing to do besides examining your own grip, is to ask a capable friend to try it. If he can't shoot it well, either....
Once I got everything centered, a minor tweak to the rear sight put the 40FS on track. A 9C and a 40C came through fine, btw.
The "Mr. Expert" guy.... That's me

, at our club range. The last guy who really qualified, and I do mean
really, passed away about six months ago. My qualifications involve getting the grips on a 1911 back on the correct sides, and how to use a Dremel to mix paint. But I do know how to fully strip (& clean) a 1911, and usually get 'em back together without problems. Eventually....
Many years ago, I was at a local gun pusher's shop, and asked to see a 1911. I stripped it to "cleaning" level (pop the slide and remove the barrel, more or less), said "See you, Frank", and headed for the door.
"STU! WAIT!" Seems he just didn't remember how to put the thing back together.... He mostly handled revolvers....
Then there was the time I cleaned one of my 1911's and proved that you
could put the drop safety levers back in wrong.... (Somebody had told me that you couldn't....) Dropped the hammer just right, but no ignition.... Quick check and it was obvious what I'd done. My shooting buddy still doesn't believe that I could fix that in five minutes with essentially no tools....
About all you need to take an M&P way too far apart is a little roll pin punch and a couple of small standard ones. 'Course, getting it back together can be an education.... Don't try to take the extractor out without a starter punch or you'll end up breaking the first one you try. You might get lucky and have enough left to be the starter punch, but this always happens on Sunday or when the hardware store is closed.
The Walther PPS extractor is held in by a spring-loaded button. Easiest thing I've ever seen to remove. But getting everything lined up to put it back in is a bit of fun.
The problem with the M&P's is that they are stamped out in huge quantities, for us, and for LE, and QC sometimes misses something. S&W seems to be spot on, most of the time, with repairs, and a lot of things are pretty easy to fix. If a PD has an armorer, special education and some spare parts are available, too. The rest of us get Will Call tickets....
I can't say for M&P's, but 1911's tend to multiply in the safe. Hopefully, my wife will buy that line....
Regards,