Wouldn't the solution be to not marry anyone and solely cohabitate with your partners? Get power of attorney, etc. to close the gap on the marriage perks.
A spouse is eligible to draw half of their spouses social security instead of their own if it would be a higher amount without affecting the working spouse’s social security.