The choice Angela Merkel had when Turkey’s imperious president, Recep Tayyip Erdogan, demanded that Germany prosecute a comedian was a variation on the dilemma posed by a kidnapper: Paying the ransom solves the immediate problem but sets a dangerous precedent.