The Netflix movie begins with the line “inspired by true events,” but it shows a huge number of things that never happened, from Cardinal Bergoglio offering his resignation in person to Benedict playing jazz piano.
Source: The Two Popes: What Actually Happened When Francis Met Benedict | Vanity Fair