This is a very general question. Executive functions of the brain support rationalization. But for the most part it seems the affective operations of the brain are at work, not the cognitive.
As stated by Afifi et al. (2021) "ongoing relationship support and common perceptions influence relational load and executive functioning". According to these authors, it appears that, receiving greater partner support is associated with greater unity, less conflict, and better executive functioning.