ANAHEIM, Calif. -- Howie Kendrick's sacrifice fly to right field drove home Albert Pujols in the bottom of the 10th inning to lift the Los Angeles Angels to a 4-3 win over the Oakland A's Thursday night at Angel Stadium.

The win moved the Angels (80-53) two games ahead of the A's (78-55) in the American League West, matching their biggest lead of the season. Each team has 29 games remaining, including six more against each other.

Pujols got the winning rally started with a leadoff walk against Oakland right-hander Ryan Cook, and went to third on left fielder Josh Hamilton's single to center.

Hendrick fell behind in the count 0-2 before working the count full and driving the ball deep enough to right field to score Pujols.

Fernando Salas, the last of five Angels relievers, earned the victory with a scoreless inning in the top of the 10th.

Kendrick and Hamilton each had two hits for the Angels, while third baseman Josh Donaldson and center fielder Coco Crisp had two hits apiece for the A's. Donaldson also homered.

The Angels missed a golden opportunity to win the game in the bottom of the ninth.

Shortstop Erick Aybar led off the inning with a chopper up along the first-base line. Pitcher Dan Otero and first baseman Brandon Moss converged, then collided as Otero fielded the ball. At the same time, Aybar ran into Otero and fell down, appearing to be tagged out.

But plate umpire Greg Gibson ruled Aybar's path to the base was obstructed and awarded him first base. A's manager Bob Melvin argued, then the four umpires met alone before sticking with the original call.

Pinch hitter John McDonald followed with a bunt up the first-base line, and this time Otero and Moss backed off, neither attempting to field the ball and allowing McDonald to reach first with a bunt single.

Pinch hitter Efren Navarro laid down a sacrifice bunt to move the runners to second and third, and third baseman Gordon Beckham was walked intentionally, loading the bases.

Melvin then brought in left-hander Fernando Abad to face the left-handed hitting Kole Calhoun, who popped out for the second out of the inning.

Melvin again went to the bullpen, summoning Cook to face center fielder Mike Trout. Cook fell behind in the count 2-0 but got Trout to hit into an inning-ending force play, sending the game into extra innings.

Donaldson's 26th home run of the season leading off the top of the sixth got the A's even at 3-3, and the A's knocked Angels starter C.J. Wilson out of the game later in the inning.

Wilson gave up three runs on seven hits and three walks in 5 2/3 innings, but was unable to hold a 3-0 lead.

A's starter Sonny Gray worked his way through some rough innings early on, but managed to go seven, allowing three runs on six hits and three walks, leaving the fate of the game to the bullpen.

The Angels broke through against Gray in the second inning, getting consecutive singles from Hamilton, Kendrick and Aybar for a 1-0 lead.

Kendrick moved to third on a wild pitch, and later Aybar went to second on Gray's second wild pitch of the inning. Gray retired the next two hitters and got ahead in the count 0-2 on Gordon Beckham, but the Los Angeles third baseman slapped a curveball into right field for a two-run single and a 3-0 lead.

The A's scored twice in the fifth, cutting their deficit to 3-2. Moss led off with a single, and catcher Geovany Soto followed with a double. When Angels right fielder Kole Calhoun had trouble fielding Soto's ball in the corner, Moss was able to score, and Soto took third.

Center fielder Coco Crisp drove in Oakland's second run with a single.

NOTES: Angels LHP Wade LeBlanc, designated for assignment Tuesday, cleared waivers and accepted an assignment to Triple-A Salt Lake. ... The Angels have not announced a starter for Saturday's game against the A's but are expected to choose either 38-year-old LHP Randy Wolf, who is currently at Salt Lake, or LHP Michael Roth, who is pitching for Double-A Arkansas. ... The A's flip-flopped their starters for the weekend, pushing LHP Scott Kazmir to Sunday and moving up RHP Jeff Samardzija to Saturday. Manager Bob Melvin said it was done to give Kazmir an extra day of rest. ... The A's optioned LHP Drew Pomeranz to Class A Beloit and recalled RHP Evan Scribner from Triple-A Sacramento. Pomeranz gave up one unearned run in 5 1/3 innings Wednesday against Houston but was replaced by Scribner so the club could have an extra arm in the bullpen for the series against the Angels.