Deductions & credits

Your are overthinking this ... divorce when you want as it is all the same on the tax returns in regards to the exclusion.  You will split the total cost basis equally along with the cost of sale.  Just make sure you each get a 1099-S for 1/2 of the sale at closing.