It is a good idea to run the numbers for your particular situation before jumping in and selling. Also, it depends on your other assets outside your home and how comfortable you are in absorbing losses. Same goes for buying.
Last year I contemplating selling my remaining rental property in SD. I’m into my 5th year on it, so it cash flows. When I computed costs for selling, as well as Taxes (never lived in the house) it would have been about 18% of the price. I chose to keep it with the possibility of a greater loss, but perhaps balanced by rent creeping up at 3% per year rather than take the guaranteed 18% hit.