Either side can produce the evidence, weigh each other's evidence, make their arguments before the court, and ultimately the court makes a decision.... or they decide they're both fucked in certain ways and settle. the way it works, either side can try to make their case... in principle makes sense, the only problem is it takes a lot of time.