Beresford loses legal supermarket race