Here is my experience. The first Gen 9mm pistols shot patterns, the .40 pistols were good by the standards of their time, and the 45's shot well by any standard.
Since then, we have Gen 5 Glocks that shoot HK and P series kind of groups. The 2.0 9mm pistols shoot better than the legacy M&P pistols but not in the same league with a Gen 5 Glock, hence my comment about needing a barrel. I haven't shot a 2.0 40 or 45, so no idea about them.