Two AI and one door to the labyrinth. How to solve who should enter?

yes there is avoidance built into the engine. i dont remember the exact name but theres a detour crowd controller management system. its something that you have to enable but theres a bunch of videos and docs out there on the topic.