Here is an easier to read version of the 9mm chart from Ballistics by the inch.
5"-7"-9"...all those seem to be fine barrel lengths....BUT.....it is still 9mm.
If it is an ammo price/ availability item, that makes plenty of sense. But that is where it stops.
9mm
in the AR platform made more sense 15 years ago, then today. Remember, AAC took .300 Whisper and developed into into .300blk as a replacement for the 9mm MP5SD while using the AR platform.
I'm in the market for a 7.5" .300blk barrel myself...as I have 8.3", 8.5" and 9" already (I use 110 Vmax for HD). Because when you start getting into the 7" and above barrel length, there is no comparison. Shooting 110's out of 7.5" .300blk....what are you getting? 2025fps 2050 fps? That is about 1000 ft-lbs of energy and cutting through IIIA armor like it isn't there.
On the other side, things like the Flux brace kit or Recover Tactical brace kit have squeezed 9mm AR's from the bottom. Happy switch aside, there isn't much ballistic difference between a braced G17 and an AR9 with a 5" barrel, but there is a huge weight/bulkiness difference. If you want to shoot on the cheap, it is hard to be .22LR.