"Inherent" accuracy is a tricky thing to measure. When we shoot, the cartridge, the firearm, and the shooter all play a role in determining how tight the group will be. We also have to look at individual loads to see how much work has been done to maximize their accuracy.
For instance, the .22 LR has a lot contributing to its reputation for accuracy. First of all, it's a quiet, low-recoiling round that's easy to shoot. Second, it's typically fired in fixed-barreled firearms that have an inherent accuracy advantage over recoil operated pistols with moving barrels. Third, it has a hundred years of production and target shooting history, so manufacturers have had both an incentive and an opportunity to refine it.
Neither the 9mmP, the .45 ACP or the .40 S&W were designed for target shooting. The first two were introduced as military rounds and the third as a police round.
For many years, though, NRA bullseye shooters who are required to shoot .45s have been working on the accuracy of the .45 ACP. As a result, the .45 has a great reputation as a target round which the 9mmP doesn't share.
A few years ago, though, the rules of service pistol competition changed to recognize the adoption of the Beretta M9 by the US military. The US Army Marksmanship Unit (USAMU) had its armorers work on accurizing the M9 and now their shooters have 9mmP pistols that shoot as well, if not better, than the accurized M1911A1 pistols in .45 ACP they used to use.
The .38 Super is another cartridge that's had a reputation for poor accuracy. That was due to the erratic headspacing of the original Colt design. When IPSC shooters began flocking to the .38 Super for its capacity advantage in 1911-style pistols, the gunsmiths went to work and now there are .38 Super raceguns that group as well as bullseye guns. Ruby Fox, a 2650 shooter, Olympic medalist and multi-time women's champion at Camp Perry shoots a .38 Super in the Centerfire matches and does very well with it.
I think the .40 S&W has a lot of potential, too, even though most .40s aren't particularly accurate. We won't know until someone has the time and the incentive to work with it.