The Prime Minister is in retreat over gay marriage - but he should never have picked the fight to begin with.