Republicans shouldn’t get smug. They’re repeating the other party’s mistakes.