Adam Hamilton, the pastor of a Methodist megachurch who was registered as a Republican until recently, had considered running as an independent before entering the race as a Democrat.