Is it? Zero profit still means you are tied to that location, and potentially could lose money if some new house repair emergency arises. Versus renting, where you would have LOADS more free time (during a very stressful time in your life) and complete freedom to move wherever you like or need to.
Mind you - if you love the house and think it's a good investment and are excited to work on it - fine, this may be a good choice. But look vERY carefully at ALL aspects of this deal, crunch the numbers and be honest with yourself about what this will really cost. All too often the left-behind spouse wants to hold onto the house, and it is often to their detriment.