On a service upgrade when I know there will be a lot of short wires, sometimes I'll run the wires into a junction box near the panel, then pull new wires from there into the panel. That solves the issue of not using a panel as a junction box unless there's adequate space.

I've never figured the cubic inch space of a panel, but it's hard to believe that adequate space would be an issue.

Dave