I heard it is better to stay put and confront the person with whom you have issues. However, I say it is better to walk away. Doing so does not make you weak. Instead, it depicts your godly wisdom.
Anger is good when it is express in the right way and at the right time. Still, being outrage can be a perfect destroyer. Amid two-second your rage, you can ruin everything you have taken years to build, such as your relationship with family members and friends or colleagues.
When you walk out rather than staying to confront it, you create enough gap between you and the person involved to find a better solution. You save your dignity. But if you decide to stay and face it out, then you must bear the consequences.
The right decision is to keep quiet and walk away.