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
Reddick: Cole has been a 'wrecking force'
Josh Reddick praises Gerrit Cole for another strong start and describes the panic he initially had when Didi Gregorius nearly hit a homer.
Cole: Delay in 5th inning didn't really affect me
Gerrit Cole describes what he thought of his performance in Game 3 of the ALCS and if the delay in the fifth inning affected him.
Cole pitches Astros past Yankees 4-1 for 2-1 lead in ALCS
A gritty Gerrit Cole held the New York Yankees scoreless without his sharpest stuff, Jose Altuve sparked Houston at the plate and the Astros locked down a 4-1 victory Tuesday to take a 2-1 lead in the AL Championship Series.
Torres' long ball gets Yankees on the board
Gleyber Torres hits a solo home run to right field in the eighth inning, his second home run of the ALCS.
Plate umpire leaves Game 3 due to concussion
Home plate umpire Jeff Nelson was struck twice by foul balls in Game 3, with the second giving him a concussion.
Gregorius just misses go-ahead HR in the fifth
With two runners on, Didi Gregorius hits one to the warning track in right field where Josh Reddick is able to make the inning-ending catch.