The goal of discovery is to avoid surprises and for all parties to go to trial with as much information as possible. Not surprisingly, many cases will settle during the discovery phase as a result of what is discovered and what would be unwise to disclose in discovery.
In practice, the majority of civil cases settle after or during discovery. After discovery, both sides usually are in agreement about the strength and weaknesses of their cases.