The trouble is that the call button doesn't indicate how many people want to go in a given direction, just that there's more than zero with such a desire.
If you could get people to input perfect information about where they wanted to go (ideally on the way to the elevator lobby, before having arrived there), much greater optimization would be possible.
Most modern buildings (2008+) don't have up/down buttons anymore, instead they require each person to input the exact floor they want to go to on a keypad. It's called "destination dispatch".
AI with a camera could give close to perfect information on how many boarded/left on each floor. Maybe it could even identify VIPs like medical personell and give them priority. Of course someone will eventually try to put a subscription model on it.