Social engineering via tax breaks are a dumb idea, but deleting the concept of marriage from law entirely is impractical and probably undesirable.
The only rights of marriage that cannot be conferred by contract are the parts that fall into the "social engineering via tax breaks" (or redistribution) category.