It’s high unlikely your claim would end up in court.
The vast majority of claims settle: only about 2% of matters actually reach a trial. And those cases are often highly contentious or have some obvious technical issue involved. These types of cases can usually be identified at any early stage in the life of a claim: at a time when you still have the opportunity to extract yourself from it.
The overwhelming majority of claims are more straightforward and tend to settle through informal negotiation processes.