We’re getting divorced. Have two children who should move?

We’re getting divorced after seven years. It’s an amicable split to some extent. We have two young children ages five and seven. My question is should I move out or should she move out or should we both move out. What’s better for the children? I of course struggle with the idea of her continuing to live in the house that we built together And bringing another man in there to play father to my children. I know I need to reframe the situation, but the pain is real. At least for now. I’m willing to put aside my pride for what is best for my children. That is what I must do. I don’t know if it matters, but she’s the one who is asking for the divorce based off of reconcilable differences and saying that we are incompatible. I do believe that she did have an emotional affair with someone however, I am in agreement that we are in compatible.