ANAHEIM, Calif. -- The Oakland Athletics are headed to the AL wild-card game off a late-inning loss that did nothing to shake their confidence.
Taylor Ward hit a tiebreaking, two-run homer in the ninth to help the Angels rally past the A's 5-4 on Sunday in Mike Scioscia's finale after 19 seasons as Los Angeles manager.
The A's (97-65) will face the Yankees in New York in the AL wild-card game on Wednesday.
"The best part of this year is that we have been competitive and we're going to the playoffs," Khris Davis said. "Teams fear us and that's a great feeling."
Oakland finished its winningest season since getting 96 victories in 2013. The 22-game improvement from last season was the third-best in franchise history.
"We don't like the way this game ended, but we're thrilled where we're going," manager Bob Melvin said. "The guys have had fun but the postseason is a whole different level."
Oakland starter Brett Anderson allowed two runs and four hits in three innings. He was struck on the rear end by Shohei Ohtani's liner, struck out one more batter to finish the third inning and left the game.
"I'll be sore and I'll have to get treatment, but I'll be fine and ready to go this week," Anderson said. "I was glad I was able to continue and stay in the game. That was a positive."
"Our relievers pitched well today until the ninth. We only gave up one hit from the third to the eighth inning," Melvin said. "Our roster is set for players, but we have a few things to discuss about the pitchers. We'll do that in the next day or so."
Davis went 0 for 2 with a strikeout and then was replaced in the sixth. He finished with a major league-leading 48 home runs, was second with 123 RBI and hit exactly .247 average for the fourth straight season.
Melvin admitted he's biased, but his pick for AL MVP is Davis.
"Khris has hit more clutch home runs for us in clutch situations all season," he said. "Matt Chapman also has had a great year, but Khris Davis needs to be in the MVP discussion."
Scioscia, the longest-tenured manager in the major leagues, finished 1,650-1,428, including 80-82 this year. He guided the franchise to its only World Series title in 2002.
Los Angeles missed the playoffs for the fourth straight year and had three straight losing seasons for the first time under Scioscia, who turns 60 in November.
During the game, Scioscia sat on the bench and talked with his staff, while first-base coach Alfredo Griffin stood in Scioscia's usual spot to the right of the dugout steps. Later, third-base coach Dino Ebel took Griffin's place.
Parker Bridwell (1-0) pitched the ninth for the win.
Ohtani went 1 for 4 with a strikeout and finished his rookie season with a .285 average, 22 homers and 61 RBI to go along with a 4-2 record and 3.31 ERA in 10 starts. The two-way Japanese sensation is set to have Tommy John surgery this week.
Mike Trout was 0 for 1 with a flyout and wound up hitting .312 with 38 homers and 79 RBI.
Angels starter Matt Shoemaker gave up two runs and two hits in three innings. He struck out three and walked two.
Scioscia has been picking up some Japanese throughout the season since a translator sits in on his pre-game media gathering. He often asks her how to pronounce certain words and their meanings. Scioscia put what he's learned into practice, explaining that he wanted to share an "old American baseball proverb." Speaking slowly in Japanese he said, "Baseball is a beautiful game when it's played freely."
A's: Oakland play at the New York Yankees on Wednesday in the AL wild-card game, with the winner facing Boston in the Division Series. Reliever Liam Hendricks is likely to be the starting pitcher.
The injury-plagued Angels had three straight losing seasons for the first time since 1992-94.
More AP MLB: www.apnews.com/tag/MLB and www.twitter.com/AP-Sports
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.
Buster's Buzz: Red Sox repeat? Four question marks facing the champs
From health to hangovers, Boston still must find a few answers in its quest for a second straight ring.
Yankees sign reliever who criticized Babe Ruth
Mike Golic finds it comical that the Yankees signed reliever Adam Ottavino who previously stated he would "strike out Babe Ruth every time."
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.
Red Sox manager Alex Cora may reconsider decision to visit White House
Red Sox manager Alex Cora, a Puerto Rico native who has been outspoken about its need for hurricane relief, indicated on Thursday that he may skip the World Series celebration at the White House over President Trump's policies toward the island.