Only a forced deal (demand-request for help, peace treaty at the end of a war) results in an unbreakable peace treaty for 10 turns. Normal trade deals still allow normal war declaration.
I don't know if a defensive pact can force you to break an unbreakable 10-turn peace treaty.
That's exactly what I was trying to figure out. It turns out that the Defensive Pact takes precedence.