BRASILIA, Brazil — Canada’s women’s soccer team will play for third place at the Torneio Internacional de Futebol Feminino following a scoreless draw against Brazil on Wednesday.

Canada needed a win in order to make the final, but will instead settle for a match against Scotland on Sunday. Brazil meanwhile moves into the final against Chile.

“We’re disappointed because you want to go in and play Brazil again in the final but that’s football,” said Canada’s coach John Herdman.

“We’ve taken four points out of the tournament. That would have qualified us for the next round of the Women’s World Cup if we were there. It just means we probably would have had a tough draw next so it’s Scotland again.”

After a quiet first half Canada nearly snatched a late winner despite playing without a player for the final 15 minutes when Lauren Sesselman was sent off for a foul.

Christine Sinclair played a hard ball to Sophie Schmidt, who knocked it onto Diana Matheson in the 87th minute. The midfielder won some space on the right side but she couldn’t get much behind the shot and it was saved.

The chances kept coming as Matheson was played in on the right in stoppage time. She had the option to pass to Schmidt or shoot — she opted to shoot but put it right at the Brazilian goalkeeper.

Matheson provided Canada with one final chance, playing the ball into Schmidt in the air. The ball was loose just a few yards in front of the goal-line but couldn’t get there in time to put the ball in.

Defender Rhian Wilkinson wasn’t impressed with the opposition.

“When they’re interviewed they’re going to say we were really physical and we were dirty,” said Wilkinson.

“I think if you have the benefit of replay or any sort of zoom you’ll see that they were ‘Superman-ing’ out there and 10 for 10 for their dives. They did very well and it’s really frustrating. I thought we kept our heads really well for all the calls that went against us and for all the effort we were putting in.”