That means that 14 of the 16 City players selected for the tournament will feature in the knockout stages, which starts on Saturday.
Brazil top the group with six points despite their 1-0 defeat to Cameroon while Switzerland earned a 3-2 win over Serbia to seal second place.
Making his first ever appearance at a World Cup, Ederson was impressive throughout the evening and could do nothing about Cameroon's winner.
Our goalkeeper's major contribution came shortly before half time as he powerfully pushed away a Bryan Mbeumo header, the first shot on target conceded by Tite's team in this tournament.
A much-changed Brazil side eventually conceded in second half added time as Vincent Aboubakar powered an unstoppable header home.
The striker celebrated by taking off his shirt, earning him his second yellow card.
Akanji's Switzerland enjoyed a positive start to an end-to-end encounter when Xherdan Shaqiri put them ahead in the 20th minute.
However, goals from Aleksandar Mitrovic and Dusan Vlahovic turned the match in favour of Dragan Stojkovic's side.
With at least a draw necessary to avoid elimination, Breel Embolo equalised for Switzerland just before the break.
Remo Freuler completed the turnaround in Switzerland's favour a few minutes after the restart before Akanji kept Serbia's potent strikers at bay for the remainder of the night.
As Group G winners, Brazil will now face South Korea in the Round of 16 at 19:00 UK time on Monday.
Switzerland play Group H victors Portugal at 19:00 on Tuesday.
Also through to the last 16 are England including City men Phil Foden, Jack Grealish Kalvin Phillips, John Stones and Kyle Walker, Nathan Ake's Netherlands, Julian Alvarez's Argentina and a Spain squad featuring Aymeric Laporte and Rodrigo.
We'll have coverage of the knockout stages of the 2022 World Cup on mancity.com and the official app, starting with Netherlands v USA and Argentina v Australia on Saturday.