Would it be possible to have it as a mod setting? Something like "Prioritize: [Distance] or [Delivery amount]"?
I have built up my rolling stock to have equal amounts of each size of the train, to take advantage of the fact that an automated train control system can match them to the amounts needed. 4-wagon trains delivering 1-wagon's worth of materials (and vice versa) isn't just inefficient on its own, in a busy enough network it can also slow down other deliveries by unnecessarily clogging up stations and routes. I would love to be able to tell the mod to choose capacity first, and only then consider distance.