Mr. McGuinness was inspired, he said, by the South African activist and president Nelson Mandela, a hero to Catholics in Northern Ireland who believed that Mandela’s struggle (and eventual victory) against apartheid mirrored their own battle against anti-Catholic discrimination.