LOS ANGELES (AP) — Enrique Hernandez dodged home on a wild throw by pitcher Matt Bush in the 11th inning and, hours after a hard collision at the plate led to a bench-clearing incident and a pair of ejections, the Los Angeles Dodgers edged the Texas Rangers 3-2 on Wednesday night.

Hernandez drew a leadoff walk from Jesse Chavez (2-1) and moved up on a long flyout. Yasiel Puig was intentionally walked and Chavez was yanked after a walk to Logan Forsythe loaded the bases.

Austin Barnes followed with a comebacker, and Bush reached out to grab it. But Bush hurried as he spun around, and his throw home for a potential forceout pulled catcher Carlos Perez off the plate. Hernandez stepped over Barnes' bat, danced around the catcher and touched home with his right hand, leaving Perez tagging nothing but thin air.

The Rangers asked for a replay review, and the safe call was upheld. After Barnes' at-bat, the Dodgers would've run out of position players — instead, Bush's error sent Texas to its season-worst sixth straight loss.

Adam Liberatore (2-1) got the win in relief.

It was more violent at the plate in the third, with Matt Kemp and Rangers catcher Robinson Chirinos getting ejected and the benches clearing.

With two outs, Hernandez singled to right and Kemp tried to score from second base. Chirinos caught a pinpoint throw by Nomar Mazara and had his glove out to tag Kemp.

Kemp barreled into Chirinos with his arms up, leading with his shoulder. Chirinos' helmet flew off as he got knocked over and Kemp fell, too.

Chirinos and Kemp jostled as they got up. That led to both benches and bullpens clearing and forming a scrum at the plate. Kemp was restrained by Rangers starter Cole Hamels.

No punches were thrown.

The rules outlaw runners from plowing into catchers, and catchers have to give runners a lane to the plate in most cases. In this play, the throw home took Chirinos directly into Kemp's path to the plate.

With two outs in the ninth and Yasiel Puig on third, Delino DeShields robbed pinch-hitter Yasmani Grandal of a home run at the center field wall. DeShields leaped and caught the ball before landing on his rear to send the game into extra innings.

Texas tied the game 2-all in the fourth on RBI singles by Jurickson Profar and Joey Gallo.

The Dodgers led 1-0 in the first on Justin Turner's homer. They added a run in the second on a double steal by Puig and Forsythe. Puig scored from third.

Hamels allowed two runs — one earned — and five hits in six innings. He struck out six and walked four. Turner's homer was the 18th given up by Hamels this season.

Dodgers starter Kenta Maeda allowed two runs and five hits in five innings while facing the Rangers for the first time in his career. He walked three and struck out one in his first start since May 29 after being on the DL with a right hip strain.

TRAINER'S ROOM

Rangers: SS Elvis Andrus (right elbow fracture) went 1-for-7 in his first two rehab games at Double-A Frisco and was to set to be the DH and play seven innings on Wednesday. Manager Jeff Banister says Andrus' return depends on when he's in shape to play every day. Andrus isn't expected to rejoin the team before this weekend. ... LHP Matt Moore won't start this weekend and is being sent to the bullpen to work on his delivery and make necessary adjustments.

Dodgers: LHP Clayton Kershaw (lower back strain) threw a bullpen for the second straight day, with president of baseball operations Andrew Friedman and manager Dave Roberts watching. Kershaw also worked on mechanics with pitching coach Rick Honeycutt. ... LHP Rich Hill (left middle finger blister) will make a rehab start Thursday for Class-A Rancho Cucamonga. If it goes well, Hill will rejoin the rotation next week in Chicago. ... LHP Alex Wood threw a bullpen session.

UP NEXT

Rangers: Following a day off, LHP Yohander Mendez gets recalled from Triple-A Round Rock to start the series opener Friday against Colorado. He made a brief appearance earlier this season with the Rangers and has started 10 games for the Express with a 5.26 ERA this season. Mendez is filling in for injured RHP Doug Fister (knee). RHP Mike Minor had been set to start Friday, but will be pushed back to Saturday.

Dodgers: After an off-day, RHP Ross Stripling (5-1, 1.65) will start Friday's home opener against the rival Giants. He and Wood are flip-flopping, with Wood getting an extra day before he starts Saturday.