Sell first
Once your sale is firm, you know how much you have to spend and you aren’t carrying two homes. The trade-off is that you may need somewhere to stay while you search, so we can ask for a later completion or possession date to give you time.