Liverpool midfielder Szoboszlai captained his nation in Wednesday’s contest in Stuttgart, which was decided by goals in either half from Jamal Musiala and Ilkay Gundogan.
The 23-year-old twice went close to scoring a quick equaliser after Musiala’s opener midway through the first period. Szoboszlai was first denied by a stretching Manuel Neuer, who clawed his free-kick away from the top corner, before he burst into the penalty area and saw a shot blocked by Jonathan Tah.
But Gundogan’s 67th-minute strike would seal victory for Germany and confirm a second defeat of the tournament for Hungary, who finish the pool phase by meeting Andy Robertson’s Scotland on Sunday.
The Liverpool left-back played his part in his country’s goal, which put them into an early lead in Wednesday night’s Group A match in Cologne, as a counter-attack accelerated by his driving run from deep ended with Scott McTominay’s deflected shot finding the net.
Former Red Xherdan Shaqiri then produced a moment of brilliance to equalise in stunning fashion for the Swiss, though Robertson so nearly created a second-half winner for Scotland as his free-kick delivery was headed onto the post by Grant Hanley.
The game would finish all square, however – a result that means Scotland go into their final pool fixture against Hungary on Sunday in third place and one point above Dominik Szoboszlai’s team.