For one thing, the rotation of Marines out for the Army units- 10th Mountain, Airborne and Delta was disastrous between the insane ROE, (no heavy air support, use of tanks,etc), bad doctine and dismissal of the allies in UNOSOM II, - (Pakistanis, Malaysians, etc) in UNOSOM II who all suffered worse casualties than the US and had every reason to want Aidid's bunch wrapped up ASAP...
A unified allied command with sufficient coordination would've crushed Aidid and every militia unit w/in 50 mi of Mog in a couple of weeks, but Delta wanted to get cute and keep seeing what they could accomplish with bold assaults cutting everyone else out of the loop. To the sorrow of many their bluff got called in Bokhara Market.
Now, let's say the militia leaders get swept up. IMO that just would've fragmented the factions in ensuing power struggles even further to the point nobody local or foreign could restore order w/o resorting to brutal suppression of any and every armed faction.
See the US drug war and other applications of decapitation theory done awry...
So finding a way out of the aid distribution trap and getting Somalis
back on the farm or in jobs that didn't involve an AK-47 as a necessary tool is a lot stickier proposition that more firepower wouldn't have solved.