Rejection of the new Junior Doctors contract is more legitimate than the rejection of the EU in the referendum