Algorithm that determines school exam results risks ‘baking in inequality’