proverb

A bad compromise is better than a good lawsuit.

compromise

it means that

With the time, the money and the effort that a case at court of law requires, it is better to avoid it by making a compromise, even if it is not so much on your advantage.