A contract is discharged by merger where a new security of a higher nature in legal operation than the old one is taken by the same person against the same person for the same debt or demand.13