Goins successfully pulled off a hidden-ball trick and hit his second career grand slam, leading the Blue Jays over Masahiro Tanaka 8-1 Friday night and ensuring New York had to wait at least one more day to clinch a playoff berth.
With Frazier on base following a leadoff double in the third, Jose Bautista made a running catch just in front of the right field warning track on Jacoby Ellsbury's one-out drive. Goins caught Bautista's throw while standing near second base, then pretended to toss the ball to pitcher Marco Estrada while slipping in into his glove.
"Something told me just to do it," Goins said. "Honestly, it was more to mess around. When it ends up working out, all you can do is smile."
Goins turned his back to Frazier, who had returned to the base, and when Frazier briefly lifted his left foot off the base, Goins tagged him on the left thigh. Frazier insisted he had maintained contact with the base, but umpire Mark Carlson called him out to end the inning.
"Bonehead play by me," Frazier said. "I thought the ball was thrown in."
New York dropped four games behind AL East-leading Boston with nine games left, and the Yankees' lead over Minnesota for the top AL wild card was cut to 5 1/2 games. The Yankees needed to win and have both the Los Angeles Angels and Texas lose to guarantee at least a wild card spot.
"We know we have a really good shot at making the playoffs, of course, but we still have an opportunity to win the division, so I think our mindset is still on that," Frazier said.
Frazier's gaffe denied Aaron Judge the chance to hit with a runner in scoring position.
"It could have changed the game. If I stay on the base, we've got Judge up and you never know what happens," Frazier said. "Everything changed from there.
Yankees manager Joe Girardi was displeased with Frazier's mistake and a first-inning fielding error by second baseman Starlin Castro that led to Toronto's opening run.
"Those things can't happen," Girardi said. "We need to clean that up."
"For whatever reason he's been inconsistent this year," Girardi said of Tanaka.
Tanaka gave up eight runs -- seven earned -- six hits and three walks in 5 2/3 innings, raising his ERA to 4.94. Tanaka has allowed seven earned runs five times this season, including twice in his last three starts.
"It's very disappointing," Tanaka said through a translator. "We're here toward the end of the season and I understand how important these games are. You want to go out there and perform."
Judge hit a solo home run, a drive that would have gone 469 feet unimpeded, his second-longest this season according to Major League Baseball's Statcast.
"That was one of the hardest hit balls I've ever given up," Blue Jays right-hander Marco Estrada said.
Judge leads the AL with 46 home runs, including nine in September.
Making his first start since agreeing to a $13 million deal with the Blue Jays for 2018, Estrada (10-8) allowed three hits in seven innings, improving to 5-0 in his last six starts. The Blue Jays are 37-23 against the Yankees since July 26, 2014.
Judge, who also walked twice, homered in the first. Bautista's RBI grounder tied the score in the bottom half, Hernandez hit a solo homer into the third deck in the third, and Martin hit a two-run drive in the fourth.
Goins, who connected on an 0-2 pitch, hit his first career slam at Milwaukee on May 24. He is 10 for 14 with 20 RBI with the bases loaded situations this season. His 10 hits matched Carlos Delgado's 2003 team record.
Goins had been 0 for 22 against Tanaka before his grand slam.
"I figured it was a good matchup," Girardi said. "It just didn't work. He hung an 0-2 pitch."
Yankees: OF Brett Gardner was held out of the starting lineup. Gardner left Wednesday's game after being hit on the back of his right shoulder by a pitch. He is expected to return to the lineup Saturday.
Blue Jays: OF Steve Pearce (back) will miss the remainder of the season. Pearce has been out since leaving a Sept. 8 game after one at-bat.
Yankees: RHP Sonny Gray (9-11, 3.38) starts Saturday and is 3-6 with a 3.29 ERA in nine outings since he was acquired from Oakland on July 31. Gray pitched four innings in a Sept. 17 loss to Baltimore, his shortest start of the season.
Blue Jays: RHP Joe Biagini (3-11, 5.33) allowed six runs -- four earned -- in 1 1/3 innings in his last start at Minnesota. Biagini has lost three straight decisions.
More AP baseball: https://apnews.com/tag/MLBbaseball
Reds strike deal for Yanks' Sonny Gray after pitcher inks extension
The Yankees have traded starting pitcher Sonny Gray to Cincinnati, the teams announced Monday, finalizing a days-in-the-making deal that ends Gray's topsy-turvy stint with New York.
Ranking every current Hall of Famer by tiers
From Ruth, Mantle, Mays & Co. to players we're not sure belong, we sort out how every Hall of Famer rates -- and how this year's crop fits in.
2019 Hall of Fame ballot: Who did our voters pick?
Roy Halladay and Mariano Rivera are both on their way to Cooperstown, according to our voters. Could Edgar Martinez be joining them in his last year on the ballot?
How social media is negatively impacting Hall of Fame voting
Deciding which stars deserve a spot in Cooperstown should be a joyful exercise, but backlash to voters' selections is sucking the fun out of the debate. Plus, a look at what players can do about the state of free agency.
Cards' Yadier Molina takes exception to quips by Cubs' Kris Bryant
Cardinals catcher Yadier Molina took exception to quips about St. Louis by Cubs star Kris Bryant and Ryan Dempster, saying only "stupid players and losers" make fun of other cities.
Kris Bryant: 'Not good' that stars Bryce Harper, Manny Machado remain unsigned
Kris Bryant and Evan Longoria expressed frustration that several free agents, including stars Bryce Harper and Manny Machado, are still looking for jobs as February nears.