MARSEILLE, France >> Trinity Rodman and Korbin Albert scored and the United States remained undefeated at the Olympics with a 2-1 victory over Australia on Wednesday to conclude the group stage.

The Americans, who already qualified for the quarterfinals, will play Japan on Saturday at Parc des Princes in Paris. Australia had to wait until the day’s matches were over to learn if it advanced.

The United States is the winningest team at the Olympics, with four gold medals in women’s soccer. They’re playing under new coach Emma Hayes, who is tasked with turning the team around after a disappointing Women’s World Cup.

So far the team is off to a good start. The front trio of Rodman, Sophia Smith and Mallory Swanson have scored seven of the team’s nine goals in France.

“The team is feeling good, we’ve had three great performances,” Crystal Dunn said. “Obviously, there’s always things that we look at where we’re like, ‘All right, this could be better.’ But overall, I’m proud of the group. I think we really came together.”

Dunn had a well-struck attempt from distance in the 38th minute but Australia goalkeeper Mackenzie Arnold pushed it up and over. Moments later, Arnold stopped Lindsey Horan’s header from close range.

Rodman broke through in the 43rd minute when she poked in the ball in a scramble in front of the net. Video review stretched on for several minutes — apparently because of a technical issue — and Australia coach Tony Gustavsson was given a yellow card in the confusion.

Albert, who was subbed into the game during the second half, added a goal in the 77th.

“I was trying and hoping for a goal,” Albert said. “I’ve been working at it in practice and mentally, just trying to focus on it. And then it just happened. I actually closed my eyes and then I opened them and I was like, ‘Oh my God, it went in.’”

U.S. midfielder Sam Coffey got a second yellow card in the fourth minute, meaning she won’t be available against Japan.

The Matildas peppered U.S. goalkeeper Alyssa Naeher in a scramble as time wound down and Alanna Kennedy helped Australia avoid the shutout with a goal a minute into stoppage time.

The Americans’ game against Australia was a rematch of the bronze medal match at the Tokyo Games. The United States won 4-3 on goals from Carli Lloyd and Megan Rapinoe, both of whom have since retired.

Hayes said she worked through the possible things that could derail them in France — like looking ahead to the move to Paris for the quarterfinals.

“Today played out how I thought it would,” Hayes said. “I said to the girls before the game, ‘This is a banana skin game.’ They said ‘What’s that?’ They said, ‘It’s called a trap in America.’ ”