What cartridge would make the most out of a longer barrel in the case of a PCC? I've seen charts before for rifle&intermediate cartridge muzzle velocity with a decreasing muzzle length, so surely something exists for pistol cartridges. I'm thinking something like .40 or 10mm would make the most sense. I feel like the typical reasons for using 9mm don't apply in the case of a PCC, namely felt recoil and mag capacity.
I mostly want to know this since at some point I'd like to build a PDW for home defense, basically an AR pistol w/ a brace. Using an intermediate cartridge indoors, in the dark, and with a shortened barrel seems like an awful idea though.
This isn't meant to be a "caliber war" question (I CC 9mm, so nothing against the cartridge), I just want to know which common pistol cartridges make better use of a longer barrel than others.