CINCINNATI -- An inconsistent St. Louis Cardinals lineup cranked out just enough offense Sunday to stay in first place.
Paul Goldschmidt hit a two-run homer, Tommy Edman added a solo shot among his three hits and the Cardinals held off the Cincinnati Reds 5-4 to split a strange four-game series in which they totaled two runs in their two losses and 23 in a pair of wins.
"It was up and down," Edman said. "We scored one run in the first and third games, exploded in the second and did pretty good today. A lot of it depends on the pitcher you run into."
Carlos Martinez gave up three straight hits and two runs to open the ninth but hung on for his 14th save, striking out Eugenio Suarez to end it. Suarez homered early but also committed a costly error at third base and grounded into an inning-ending double play with the bases loaded in the seventh.
Reds rookie Aristides Aquino went 0 for 2 with two walks after hitting 10 home runs in his previous 11 games.
Suarez went deep in the first inning, his first at-bat after missing Saturday's game with a sprained left thumb. That run was the first against Flaherty (7-6) since a 5-3 win over Houston on July 26. He had thrown seven scoreless innings in each of his three previous August starts.
"The one to Suarez got away," Flaherty said. "I was flying open. I lost my mechanics a little bit."
The right-hander improved to 3-0 in four starts this month after allowing three hits with three walks and five strikeouts.
"Jack was good," St. Louis manager Mike Shildt said. "He wasn't quite as crisp as he has been, but that's a pretty high bar. He pitched well with the lead. He had a little more in the tank, but his command was starting to get away from him."
Left-hander Alex Wood made his fifth start for the Reds after spending the first four months of the season on the injured list with a lower back problem. Wood (1-2) gave up eight hits and five runs -- four earned -- in five innings, with one walk and six strikeouts.
"The moral of the story is that I have to keep the ball in the ballpark," Wood said." I don't think I've ever gone through a period like this where I gave up a lot of home runs. The only bad pitch I made was the one to Goldschmidt."
Edman hit his fifth home run with one out in the fifth. One out later, Goldschmidt and Marcell Ozuna teamed up on back-to-back doubles for a 5-1 lead.
Before the game, the Reds placed 1B Joey Votto on the 10-day injured list, retroactive to Thursday, with lower back tightness that had kept him out of the past three games.
Reds reliever Kevin Gausman struck out all six batters he faced in the eighth and ninth and needed the minimum nine pitches for his ninth-inning punchouts. He became the sixth Reds pitcher to log an "immaculate" inning and first since Drew Storen against Baltimore on April 18, 2017.
The Reds wore replicas of the uniforms worn by the 1990 team, Cincinnati's last World Series champion. They were the 12th in a series of 15 throwback outfits the team is wearing to help celebrate the 150th anniversary of baseball's first all-professional team.
Reds: Flaherty hit CF Nick Senzel just above the left elbow with a pitch. Senzel stayed in the game.
Cardinals: RHP Dakota Hudson (11-6) pitches Monday night at home against the Brewers in a matchup of NL Central contenders. Milwaukee has roughed up Hudson for 15 hits and 10 runs -- nine earned -- in eight innings over two starts this season.
More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports
Archer: Allegations against Vazquez are very serious
Pirates pitcher Chris Archer reacts to the allegations against Felipe Vazquez and describes the emotions in the locker room.
Phils lose Dickerson for season with broken foot
Philadelphia outfielder Corey Dickerson will not return this season after an injury to his left foot was determined to be a fracture.
Nats manager Martinez to miss series with Cards
Manager Dave Martinez will miss the Nationals' series in St. Louis after having a heart procedure Monday, Washington general manager Mike Rizzo said Tuesday.
Betts has MRI, day-to-day with foot injury
Red Sox outfielder Mookie Betts is day-to-day with foot inflammation.
Yanks' Stanton to be activated in next two days
In an attempt to get the slugger ready for the playoffs, the Yankees plan to activate Giancarlo Stanton on Wednesday or Thursday.
Indians 2B Kipnis (hand) out for rest of season
Indians second baseman Jason Kipnis will miss the rest of the season and is expected to need surgery to repair a fracture to the hook of hamate bone in his right hand.