Surrogacy if when a women is paid to carry a baby to term for either a set of parents or a man. The surrogate can either be the biological mother of the child through traditional surrogacy or a different egg from another woman can be used. When the baby is born and transferred to the parent/s, the surrogate has no legal rights to the baby. You can also even make requests for the surrogate to eat certain food or make certain lifestyle changes to ensure the health of the unborn child.

Given that the court system has a bias towards men, this option is far less risky in comparison as the child would be yours and yours alone. The only issues are that it is illegal in some places and can be expensive although there are cheap countries that you can go to get a your own child at a much lower cost. It would at least be cheaper than paying for a divorce or paying child support for over a decade and you won't have to deal with a potentially hostile ex.