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

Ok thank u for answer. I think it can solve my problem, but has unreal engine got any built-in function for solving this problem? Something like rvo avoidance?