What this clause does
A no-contest clause (also called an in terrorem clause) tells a beneficiary that if they file a legal challenge against the will or trust, they lose their share. The threat is the deterrent. The clause does nothing against someone who already gets nothing under the document, so it works best when an unhappy beneficiary has a meaningful inheritance at stake.