The role of a sidearm is NOT exactly the same as the role it would play for a civilian range toy or self/home defense or carry piece.
The military has political reasons to get XYZ product, and unfortunately often gets INFERIOR products. MILSPEC is NOT always a good thing... and the military is very very slow to change and requires extensive independing testing. Personally, I can simply read testing results and pick the best gun...
Features desireable in the military may not be at home... the safey on the M9 is in a bad spot, and operates opposite of common sense. But the military requires an external safety and decocker. Also, sidearms are not a primary weapon in the military, unlike in personal home defense.
In the 1980s when the Army was in the hunt for a new sidearm, Smith & Wesson, Beretta, SIG Sauer, Heckler & Koch, Walther, Steyr, and Fabrique Nationale competed.
At the time, as you can see, the competition was not very stiff. I assert that in the 30 years since, new guns and designs crush the M9 in nearly every aspect/feature.
Google torture tests for Glock, XD, and CZ and you'll conclude that the 'tests' the Army used for the M9 are childs play.
Yes it's a sexy gun, and has good ergonomics. Sig Sauer was the only company with as good as a gun, and HK was overpriced.
The M9 is an okay gun, but there are just better guns in the price range. I don't dispute that some professionals can tune a gun and make it operate... but that is like saying that since a professional racecar driver wins using a Subaru, then ALL Subarus can operate at that level. It should be obvious that the professionals aren't using 'off the shelf' pistols. They are professionally fitted and tuned race guns.
Don't just rely on me.... U.S. Special Operations have a choice in sidearms, and they notably pick Glock, Sig Sauer, and HK... that should tell you something.
A quick look at Wikipedia, and around 50 nations use Glocks for military and police, 30 or so use Sig 229... and so on ...
And according to CZ, the CZ75 is the most used pistol in the world. Over 60 countries use it as the standard side arm of their Armies, National police forces, National security agencies or other Law enforcement organizations. No other pistol can make this claim.
Don't you find it odd that Italy and the USA and NO other nation uses the Beretta 92 as the sidearm of choice. And police departments have abandoned it in favor of Glock, XD, and Smith and Wesson...
So, either the rest of the world is wrong, or the rest of the world is right and the 92/M9 is not really that good of a value pistol compared to the other dozen outstanding choices.
But for my own tastes, I might own a Beretta again one day, but only if it's a GREAT price (under $450). I'd much prefer to get the other guns I mentioned. I have the resources to get any handgun I want, and I rely on lots of guns OTHER than the M9 (which I carried in Iraq, and also used to own).