Proceeds from a sale completed before the divorce is finalized are typically held or divided according to the same rules that will govern the eventual settlement, so selling early does not skip the division question, it just moves the timing.
A sale that happens without proper agreement can be challenged, which is why a lawyer, for legal fees typically $800 to $1,500, confirms both spouses' consent in writing, or secures a court order through the Court of King's Bench, before listing proceeds to an accepted offer.
Doing this properly from the start avoids a sale later being unwound or delayed. Get your hand-reviewed valuation from Joel Dyck.