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
Big league vets on minor league deals may get up to $50,000 from union
About 370 players who were at big league spring training with minor league contracts will get advance payments of up to $50,000 each from the MLBPA.
Judge nixes fantasy players' lawsuit over sign-stealing scandal
While scolding the Astros and Red Sox for "shamelessly" breaking baseball's rules concerning sign stealing, U.S. District Judge Jed Rakoff dismissed a class-action lawsuit against MLB by a group of daily fantasy sports contestants.
How the biggest stars in sports are practicing while social distancing
Omar Raja highlights how some of the biggest athletes in sports are keeping up with their training while quarantined.
MLB's brightest stars under 25
Check out the highlights from baseball's biggest stars under the age of 25.
Ex-Astros catcher Evan Gattis: We obviously cheated baseball, fans
Evan Gattis, who was a catcher and DH as the Astros won the World Series in 2017 amid a sign-stealing scandal, said he understands why it's "not ... good enough to say sorry."
Betting roundtable: Our experts reflect on their most regrettable bets
With the sports betting world essentially on hold, our experts look back on some of the worst overall bets they made over the past year.