Bailey began the inning at second base. After Casey Schmitt was hit by a pitch from Mauricio Llovera (1-1), Brandon Crawford attempted to sacrifice the runners over. But Boston catcher Connor Wong was unable to field the ball and Crawford reached on an infield single.
Pederson then lined a 1-2 sinker from Llovera into right field.
It was the second time this season that San Francisco won on a game-ending play with Pederson at the plate. He drew a bases-loaded walk to beat San Diego on June 20.
“You definitely want to be aggressive,” Pederson said. “The pressure’s on the pitcher. They’re wanting to throw strikes and not get behind in the count. That definitely plays into it.”
Wilmer Flores and Luis Matos each had two hits for San Francisco (58-48), which is on top of the NL wild-card standings after winning six of seven.
“Some teams just have a flair for some late-inning heroics. Seems like this team has that for sure,” said Ross Stripling, who pitched 4 1/3 innings of one-run ball in relief of opener Scott Alexander. “Sometimes we don’t even come alive until like the seventh inning. The struggles that we’ve been through have brought us really close together as a group.”
Justin Turner and Adam Duvall homered for Boston. The Red Sox have lost consecutive road series for the first time this season.
Boston (56-49) missed a chance to take the lead in the top of the 10th when Tristan Beck (2-0) got Yu Chang to strike out swinging with two runners on.
The Giants were up 2-1 when Turner hit his 17th homer, a two-run shot off Tyler Rogers in the eighth. But Bailey tied it at 3 with a run-scoring groundout in the bottom half.
Turner’s drive to left spoiled a strong outing by Stripling, one of San Francisco’s top offseason acquisitions.
Stripling retired 13 of his 17 batters. He allowed four hits, struck out three and walked none.
After Duvall chased Stripling with his leadoff homer in the seventh, the Red Sox put two runners on before Triston Casas flew out to center fielder Matos, who threw to second for an inning-ending double play.
Alexander threw 16 pitches and retired five batters. Boston’s Brennan Bernardino allowed one hit and one run on 27 pitches in one inning of work.
San Francisco improved to 13-4 this season when using an opener.
GOLD GLOVE GEM
The 36-year-old Crawford returned to the lineup after missing 12 games with left knee inflammation, and the shortstop showed why he’s still considered one of the best infielders in the game. The four-time Gold Glove winner snared Turner’s sharp grounder then made a backhanded flip to second baseman Schmitt, who threw to first to complete a double play.
“What I see is a team that’s playing really good defense and pretty consistent defense,” San Francisco manager Gabe Kapler said. “In the biggest moments we’re making plays.”
Giants: RHP Anthony DeSclafani was placed on the injured list with an elbow flexor strain. … OF Mike Yastrzemski was removed from the game due to left hamstring tightness.
Red Sox: RHP Nick Pivetta (7-5, 4.11 ERA) will make his first start since May 16 when Boston begins a three-game series in Seattle on Monday.
Giants: Kapler has not announced a starter for Monday’s home game against the Diamondbacks.
AP MLB: https://apnews.com/hub/mlb and https://twitter.com/AP-Sports
Copyright 2023 STATS LLC and Associated Press. Any commercial use or distribution without the express written consent of STATS LLC and Associated Press is strictly prohibited.