President Recep Tayyip Erdogan is in a strong position to win the election — despite a devastating earthquake that many observers predicted would end his rule.