Where the home was registered as a family home under The Homesteads Act, 1989, the non-owning spouse's written consent is required to sell or mortgage it regardless of whose name is on title, which surprises people who assume sole ownership settles the question on its own.
A buyout requires the remaining spouse to qualify for the mortgage independently and typically to refinance the departing spouse off title through Information Services Corporation, which is its own approval process separate from the divorce itself and can take longer than either spouse expects.
Which path makes sense usually comes down to whether either spouse can and wants to carry the home alone. Get your hand-reviewed valuation from Joel Dyck.