Duress does negate a contract and your example is silly.
How is the defendant who pleads guilty to a manslaughter charge in order to avoid a murder charge NOT under duress?