The Duchess of Sussex was speaking on a panel including Annie Lennox and the former Australian prime minister Julia Gillard.