BARCELONA, Spain -- Gold medal at stake or nothing at all, the U.S. Olympic basketball team was bringing its best Tuesday.

Being back on the Dream Team's turf required it.

Carmelo Anthony came off the bench to score 23 of his 27 points in the first half, and the Americans beat Spain 100-78 in a rematch of the gold-medal game -- and possible preview of the next one.

LeBron James added 25 and Kevin Durant had 13, including 10 in the first 3½ minutes of the third quarter to help the U.S. break open the teams' final exhibition game before heading to London.

"We knew that this was a big game," U.S. guard Chris Paul said. "When Coach K talked to us, he told us this was probably the biggest game here in Barcelona since the '92 team was here, so we approached it like that and it was a good win for us."

The teams played a memorable gold-medal game four years ago, the Americans pulling away for a 118-107 victory after leading by only four points with under 2½ minutes left.

This one turned out much easier once the U.S. controlled the final three quarters.

"It was a good test for us tonight, but the exhibition games are over, the friendlies are over and we look forward to the real challenge of going to London," James said.

Pau Gasol scored 19 points and Oklahoma City forward Serge Ibaka, a native of the Republic of Congo who became a Spanish national last year, had 16.

Carmelo Anthony scored 27 points off the bench to help the U.S. defeat Spain 100-78 on Tuesday. Bob Donnan-US Presswire

Both teams have been weakened by injuries, with the U.S. missing Dwyane Wade, Dwight Howard and Chris Bosh, all key contributors in Beijing, along with Derrick Rose. The Spaniards are without point guard Ricky Rubio, and All-Star center Marc Gasol, Juan Carlos Navarro and Rudy Fernandez have battled injuries this year.

They're still the best two teams in the world and favored to meet again in the Aug. 12 gold-medal game. Spain would have a different look, as Marc Gasol was held out of this one while recovering from a left shoulder injury and backup point guard Sergio Rodriguez also sat out.

It may not matter if the Americans play like this in the games that count.

Spain's players said Monday that while they would try to win this tuneup, the bigger priority was preparing for London. The Americans responded that the Spaniards, playing in front of their home fans, would be compelled to go all out in hopes of a victory.

Spain seemed to be playing for real, but was simply overmatched and the Americans eventually ran away from them.

"Well, it was definitely a game that we would have loved to play better as a team," Gasol said. "We made too many mistakes which they capitalized and they played their game. They're a quick unit, very athletic and once they were able to convert a few fast-break opportunities due to our turnovers, it was hard for us."

The Americans, who would have had Howard, Bosh and Blake Griffin on this roster, believe their quickness and versatility will overcome their size problems, and that's what happened in this one.

Spain's size advantage was evident early, especially once Tyson Chandler, the only center on the U.S. roster, went to the bench with two quick fouls. The Spanish pounded the ball inside to Ibaka, who accounted for three straight Spain baskets on dunks, and the Americans were forced to use a timeout -- that never happened 20 years ago when the Dream Team ruled Barcelona -- after Victor Sada's jumper made it 22-13 with 1:40 left in the opening period.

But though Gasol and Ibaka had an obvious advantage inside, neither could deal with Anthony on the perimeter. He made five 3-pointers in the first half while often appearing unguarded behind the arc.

He opened and closed a 20-6 burst with 3-pointers as the Americans went from four down to ahead 42-32 with about 3 minutes left in the half. They later went up by 13 before taking a 48-40 lead into the locker room.

Gasol had the first basket of the second half, but Durant dominated the next few minutes as the Americans extended the lead to 60-46. Russell Westbrook scored seven straight later in the period, his steal and dunk making it 69-48 with 4:19 left.

Spain trimmed it to 12 later in the period, but never had a real shot of getting back into it.

At times it felt like a serious game at Palau Sant Jordi, where nearly every seat was filled well before an energetic pregame ceremony, in which the U.S. national anthem was performed live, instead of the usual recording.

But it also felt like a show, something along the lines of the NBA All-Star game. Navarro was honored before the game for his 200 appearances for Spain, and Dream Teamers Chris Mullin, David Robinson and Clyde Drexler were introduced during a first-quarter timeout. The teams took a photo together after the game as confetti shot out behind them.

The U.S. had a pair of quality tests in Barcelona, beating Argentina 86-80 on Sunday and going 5-0 overall in exhibition play. But the Americans were pushed by all three opponents with legitimate NBA size, the two here and Brazil in an 80-69 victory in Washington.

"We played against two very tough teams in Argentina and Spain, so I think it made us a better team," Kobe Bryant said. "I think it showed us some things that we want to do differently, some things that we're doing right, and I think because of it we feel pretty good about our chances."

The U.S. and Spain were drawn into opposite Olympic pools, so they wouldn't play until the elimination round. And it's likely to be at the very end of it.