First baseman Jesus Aguilar played spoiler for the Cardinals right hander. He stepped up to bat as the second hitter in the bottom of the seventh inning Friday at Miller Park in Milwaukee.
Flaherty began the frame by striking out Travis Shaw. Aguilar then stepped to the plate. He first had a swing-and-miss on an 86.6 mph slider.
Aguilar then belted a low 83.1 mph slider over the left center field fence. The ball cracked off of his bat at 99.2 mph and traveled 385 feet, according to Statcast.
Flaherty got out of the inning by forcing Jonathan Villar into a ground out and striking out Manny Pina. He was yanked from the game in the bottom of the eight inning.
Aguilar returned to the plate in the bottom of the ninth inning with the game tied at 1-1. He sent an 0-2 fastball from Bud Norris to right field for a walk-off solo blast, giving the Brewers their 45th win of the season.
Flaherty allowed one hit and one run, while walking two batters and throwing 13 strikeouts in seven innings of work.
The Brewers first baseman went 2-for-4, with two RBIs and two runs scored in the victory. He is now hitting a team-best .305 on the season with 16 home runs and 49 RBIs.