It's tricky. If you need to sell to secure the down payment or clear the debt to income, you can't. You can write a contingent offer, but these are not always desirable to a seller. You need a great agent to discuss a strategy that will work best for you. You need a great lender to review your options and advise how they see things. Find your pros and see what may be the best route for you.