LONDON (AP) — Spain lost to Brazil, then had to play defense.
Questioned if they played to win, the Spaniards insisted they didn't intentionally lose their final Olympic preliminary round game to Brazil in order to avoid an earlier matchup with the U.S. in single-elimination play starting Wednesday.
"No. Never," said Spain guard Jose Calderon. "This is not our team, this is not the way we play, this is not the way. We've been together since I don't know how many years, and we always play to win. Always."
Leandro Barbosa scored 10 of his 23 points in the final six minutes, rallying Brazil to an 88-82 win over the Spaniards in a matchup of two medal contenders who could eventually challenge the Americans for gold.
Barbosa scored 20 points in the second half for Brazil (4-1), which trailed by 10 early in the fourth quarter. But the super-speedy Barbosa, who now plays for the Toronto Raptors, made a pair of 3-pointers and four free throws in a 12-2 run as Brazil finished second in Group B.
Pau Gasol scored 25 points and his brother, Marc, added 20 for Spain (3-2), which may have actually gained something by losing.
Spain is assured of not playing the U.S. (5-0) until the gold-medal game — that is if both the Spaniards and Americans continue to advance and get back to the final for the second straight games. The U.S. beat Spain for the gold medal four years ago in Beijing.
Behind Kevin Durant's 28 points, the U.S. concluded pool play with a 126-97 win over Argentina, which will play France in the quarterfinals.
In the other medal-round matchups, the Americans plays Australia (3-2), Spain plays France in a rematch of last year's European championship, and Russia (4-1) plays Lithuania (3-2).
Pau Gasol isn't concerned about who Spain meets next.
"The way we're playing right now, anybody could beat us," Gasol said after he and his teammates finished pool play with losses to Russia and Brazil.
Brazil, which would face Argentina on Wednesday if the U.S. wins as expected Monday night, played without 6-foot-11 starting center Nene. He sat out with foot soreness.
Nene, traded to the Washington Wizards last season, has been bothered by plantar fasciitis and Brazil decided to rest him for the upcoming medal round.
Leading into the game, there had questions whether Spain or Brazil might sit players and not try to win to avoid facing the U.S. until there was gold up for grabs. Eight badminton players were recently expelled from the London Games for trying to lose and the IOC is keeping a close eye to ensure the Olympic creed "to have fought well" is upheld.
Spain forward Felipe Reyes said the pre-game suspicions impacted the world's second-ranked team.
"Of course it bothered us," he said. "We're professional players and we always want to win. The press were talking about that and it affected us. Now we have to forget this and focus on what comes next."
The Brazilians played hard — no questions.
They trailed 67-57 early in the fourth quarter, but began chipping into Spain's double-digit lead while the bearded Gasol brothers sat on the bench.
Barbosa made two free throws to pull Brazil within 73-69, and then hit consecutive 3-pointers to put his country ahead 75-73 with 4:16 remaining. Marc Gasol fed his brother in the lane for a nice basket underneath, and Pau Gasol hit a free throw on Spain's next trip to make it 79-76.
But after Anderson Varejao's free throw, Barbosa got behind Spain's defense and scored an easy layup to give Brazil an 82-76 lead.
"We wanted to win," said Brazil's Alex Garcia. "We played to win."
Spain got within five points but was sloppy in the final two minutes and suffered its second straight defeat in pool play after losing to 77-74 to Russia on Saturday.
Among the 12,000 fans watching in the first half was the U.S. team. LeBron James and his teammates sat in the stands and took mental notes before playing rival Argentina in their final tuneup before the quarters. The Americans beat both Brazil and Argentina in an exhibition tour leading up to London.