Medical specialists prioritise patient-related clinical factors over law when confronted with a scenario where legal compliance is inconsistent with what they believe is clinically indicated. Although legally knowledgeable specialists were more likely to comply with the law, compliance in the scenario was not motivated by an intention to follow law. Ethical considerations (which are different from, but often align with, law) are suggested as a more important influence in clinical decision-making. More education and training of doctors is needed to demonstrate the role, relevance and utility of law in end-of-life care.