Napoli would have taken a big step towards theknockout stage with a win and looked set to do just that when Matteo Politano diverted home the hosts' 39th-minute opener.
AC Milan's hopes of reaching the Champions League knockout stages were all but ended on Tuesday night at San Siro as they lost 3-1 to Borussia Dortmund.
With Jurgen Klopp's team safely through to theknockout stages as Group D winners and their opponents guaranteed the wooden spoon, this dead rubber still provided moments to remember.
Vinicius Jr slotted into the bottom corner after skipping past the Braga defence before setting up Rodrygo, who dinked the ball over the onrushing goalkeeper Matheus. Real advanced to theknockout stages for the 26th consecutive season.
Arsenal edged closer to the Champions League knockout stages as Bukayo Saka's goal and assist helped them to a commanding 2-0 win over Group B opponents Sevilla at the Emirates Stadium.
Instead it was a dreadful night for Arsenal, who must now become the first team since Galatasaray in 2012-13 to lose their first two group games and still reach theknockout stage.
Bayern suffered an injury blow as Musiala went off after injuring his hamstring in the first half, but they maintained their focus to book their place in theknockout phase.
United are now bottom of Group A and, with Bayern Munich already guaranteed to finish top after beating Galatasaray on Wednesday, the Premier League side face a three-way battle with the Turkish outfit and Copenhagen for a place in theknockout
Interim coach Emerse Fae masterminded Ivory Coast's passage through theknockout stages, which included dramatic victories over defending champions Senegal and Mali after late equalisers in both games.
Nketiah fired Arsenal ahead three minutes before the end of a first half in which they had been put under significant pressure by PSV, who had also already qualified for theknockout stages as group runners-up.