I’d run three scenarios: sell after five years, sell after seven, and move out but retain it temporarily. For each, separate principal repaid from interest and other ownership costs, then allow for a slower sale, higher building fees and some vacancy in the rental scenario.
Before deciding, ask...