glock or M&P?
Unless you want something that isn’t ugly. Then M&P all day.
Not that there’s a single thing wrong with Glocks performance or reliability. I competition shot for a very short while after my first tour back in 2010 and my Glock, after around 10,000 rounds had literally 2 errors.
Proper maintenance is what it all comes down to.