"Where a cause of action is pursued to final judgment in a court of competent jurisdiction, a judgment in favor of the plaintiff discharges the cause of action by way of merger,15 and a judgment against him on the merits discharges it by way of estoppel." 16 17