Put the children first.
If your conflict concerns co-parenting your children, then recognize that mediation is a much kinder and gentler way to resolve disputes. At mediation, there is more flexibility than what a judge can order in court. Besides, people tend to commit and follow rules they agree on then those imposed by a third party.
You do not really know what might happen in court when you fight, whereas if you agree on certain solutions in mediation, you can influence the final outcome and try to adjust them to the needs of your children. Mediation can bring you a custom made solutions and address the issues long term and provide for step-by-step adjustments to the issues you are facing.