When you want them overlap each other, but not for much time:
Use the action -> move at angle -> move 200 * dt pixels at angle 180 + (angle(object1.X,object1.Y,object2.X,object2.Y)
And they will go to the opposite side.
Else,
Prevent his movement:
Check the the distance between each other with the Distance(...) > desired radius
And do the logic inside this bracket.