Contingency!
Most similar case, seller will have a contingency which has to buy one and then sell their own. Two transactions has to take place and complete in approximately same period It is safe to assume that real estate agent will put this in the contract. It is like real estate 201.
Find something else. The next house will be better.