ATLANTA (AP) — Dansby Swanson and the Atlanta Braves are happy to take a gift when they receive it, particularly a big one.

Swanson scored the tiebreaking run in the fifth inning on an excruciating defensive sequence by the Phillies, and the Braves beat Philadelphia 8-4 on Wednesday night.

“In this game, you'll take every break you can," Swanson said. “Obviously, we're going to keep riding with this momentum that we have and look to put together another good performance tomorrow."

Swanson singled and came around to score for a 5-4 lead on a play that started with a wild pitch by reliever José Alvarado (0-2) and a high throw from catcher J.T. Realmuto in an attempt to keep Swanson from reaching second.

The miscues got worse from there.

The ball sailed past the outstretched gloves of Jean Segura at second and Bryson Stott at shortstop, then went under the glove of center fielder Odúbel Herrera for a two-base error.

It appeared both Segura and Stott could’ve caught the ball — neither was charged with an error — and kept it from getting away. Herrera charged and overran the ball, then looked even more hapless as he retreated to pick it up near the warning track.

“We gave it away," Phillies manager Joe Girardi said. “Alvy had a hard time throwing strikes. We had the ball thrown by J.T. missed by a couple of guys and then we didn't do much after that offensively. It's unfortunate.

“It looked like (Segura) was trying to be quick with the tag, and they work on that all the time. It looked like Odúbel just peeked up."

Austin Riley followed with his ninth homer to make it 6-4. Swanson, who went 4 for 5, connected with his sixth homer, an opposite-field shot to right, for a 7-4 lead in the sixth. He also added an RBI single in the four-run second.

Charlie Morton, a 38-year-old making his 300th career start, stranded runners at third in the first and fourth, yet he couldn’t escape trouble in the fifth as the Phillies scored twice to tie it at 4. He was chased on Segura’s RBI single.

Morton went 3-2 with a 2.19 ERA in five starts against Philadelphia last year, but he wasn’t as fortunate this time, getting charged with nine hits and four runs in 4 1/3 innings.

Ranger Suárez had a 2.49 ERA since becoming a full-time Phillies starter Aug. 2 and had a 1.91 ERA in seven road starts since joining the rotation. He didn’t fare as well against Atlanta, giving up five runs and six hits in 4 1/3 innings.

Spencer Strider (1-1) got the win with 2 2/3 scoreless innings of relief.

Atlanta took a 4-1 lead in the second. After William Contreras’ seventh homer narrowly cleared the wall in left, Ozzie Albies had a two-run single. Swanson followed with a single that scored Albies from second.

“I feel like we're finally seeing some of the results show up just with the work we've been putting in," Swanson said.

Morton trailed 1-0 in the second when Herrera hit his third homer, a 431-foot shot that glanced off the Chop House façade in right field. Herrera added an RBI single in the fourth that trimmed the lead to 4-2.

The Braves have won seven of eight against Philadelphia at home and are 28-15 versus the Phillies since Truist Park opened in 2017.

Phillies slugger Bryce Harper, a two-time NL MVP, is 7 for his last 8, which includes three doubles and a homer.

Philadelphia's poor defense came one night after a wild pitch allowed Swanson, who had doubled, to advance to third in the ninth inning. Center fielder Roman Quinn followed by calling for a fly ball that bounced off his glove and fell between him and right fielder Nick Castellanos. Swanson scored and Ronald Acuña Jr., who hit the ball, scored from second when Contreras singled him in for the walkoff win.

TRAINER’S ROOM

Acuña has a grade 1 strain in his right quadriceps and will likely miss his second straight game on Thursday. He was scratched from the lineup about 90 minutes for the first pitch. He awoke Wednesday feeling tightness in his leg and tested it out running the bases before deciding against playing. Brian Snitker said he is day-to-day.

UP NEXT

Braves RHP Kyle Wright (4-2, 2.49 ERA) will face Aaron Nola (1-4, 3.96) as the teams conclude a four-game series. Wright is 0-2 with a 5.56 ERA in two career starts and one relief appearance against Philadelphia. Nola is 12-8 with a 3.32 ERA in 25 career starts against Atlanta.

___

More AP MLB: https://apnews.com/hub/MLB and https://twitter.com/AP_Sports