So my plan if I move is exactly what it sounds like: I sell the house and then buy a new one wherever I'm moving to. As long as I'm staying for like 5+ years at that location I think it's still worth it.
The goal is that by the time you reach retirement age, you have paid off the mortgage and own your home free and clear. Thus, you only have to pay the property taxes and have more financial security than someone who never built up equity because they always paid rent.
Furthermore, if you have children, that home is potentially a source of generational wealth. They can sell it after you pass and invest the proceeds, or live in it themselves if they want. Worst case, if you find you didn't save enough for retirement, you can tap into the home equity to keep food on the table, although this is not optimal.
In any case, if they move, then the price of the home they are selling will have gone up (or down) more or less the same as everyone else's, so it basically works out to a wash.