"There was great pitching on both sides," manager John Gibbons said. "A really big home run by a guy who does it a lot these days. We obviously couldn't put together too many hits."
Gaviglio was brilliant, throwing seven shutout innings and allowing just three base hits. He walked three and struck out four on 104 pitches, which brought his season ERA down to 2.51.
"I watched what Marco did yesterday. He had a lot of success," Gaviglio said after the game. "Russell Martin did a great job calling pitches once again."
Gaviglio's sinker, which he threw 60 times, was particularly sharp. He constantly tinkered with his velocity on that pitch -- moving it between 87.7 mph and 91.4 mph -- which helped him to force 12 groundouts.
"I'm not trying to do too much," he said. "I'm trusting what I've got. That's the big thing."
After Gaviglio exited, a combination of five relievers got the Blue Jays through five scoreless innings before Joe Biagini entered in the 13th. Aaron Judge took Biagini deep for a two-run shot, which was all the Yankees needed, but Giancarlo Stanton tacked on a solo shot of his own. Stanton's left the bat at 119.3 mph for the second-hardest-hit ball put in play this season, according to Statcast™.
Yankees starter Sonny Gray entered the game with a 5.50 ERA but carried a perfect game into the fifth inning before Justin Smoak broke through with a double. Toronto pushed Gray more toward the end of his start, but a pair of inning-ending double plays kept him out of trouble.
The Blue Jays finished with just four hits and 15 strikeouts.
"We've got guys that can hit," Gibbons said. "They're going to hit. Other than that, there's really not much you can do."
MOMENTS THAT MATTERED Travis denies Yankees:Devon Travis kept the Yankees off the board in the top of the second with a diving play and flip to end the inning. Austin Romine was batting with runners on the corners and two outs when he sent a hard grounder up the middle that would have scored Stanton from third, but Travis ranged quickly into the hole and made the difficult play.
"That play that Devon made for me was big," Gaviglio said. "It helped me get out of that inning I kind of dug myself a hole in."
Travis denied by Yankees: It looked as though Toronto finally had some momentum with runners on the corners and nobody out in the bottom of the fifth. Kevin Pillar chopped a ground ball to third, but Smoak was already caught off the bag and quickly made the decision to break for home. Miguel Andujar made the easy throw home, and Smoak was out by several steps. Toronto then loaded the bases with a walk, but Travis grounded into a double play to end the inning.
SOUND SMART Gaviglio's seven innings and 104 pitches were both career highs.
YOU GOTTA SEE THIS Teoscar Hernandez made a five-star catch in the top of the 11th to rob Greg Bird of a hit. Hernandez covered 98 feet in 5.0 seconds at a sprint speed of 28.8 feet per second to make the sliding grab, which had only a 24 percent catch probability.
UP NEXT The Blue Jays welcome the Orioles to Toronto on Thursday night at 7:07 ET to begin a four-game series. Jaime Garcia is looking to bounce back from his shortest outing of the season over the weekend in Detroit, where he lasted just 1 2/3 innings. Garcia has pitched a full six innings just twice over his 10 starts this season. Rookie David Hess will take the hill for Baltimore.
Keegan Matheson is a contributor to MLB.com based in Toronto.