A decision by a Sydney school to allow students to opt out of its Anzac Day service has ignited a heated debate about the role of national commemorations in education.