J.D. Davis was one of few Mets to have success Friday night against Dodgers lefty Clayton Kershaw, but his first-inning home run was wasted in a 9-2 loss to the Dodgers.

Kershaw, the three-time National League Cy Young Award winner, improved to 10-0 with a 2.19 ERA in 15 career regular-season starts against the Mets with 6 ¹/₃ innings of two-run ball.

According to the Elias Sports Bureau, Kershaw is the second pitcher in the past 50 years to win his first 10 regular season decisions against the Mets, joining Pedro Martinez (10-0 from 1993-97).

“I think he just got a feel for that little cutter-slider thing that he has. He was spotting it pretty good,” Davis said. “He had command of his fastball and then he started really feeling for that curveball. He’s just one of those guys, one of those starters, who you know we needed to get on him early and get him before he gets into his groove, like you guys saw. He did Kershaw things.”

Pete Alonso wasn’t in the starting lineup because Mickey Callaway thought he looked “fatigued” and needed a day off, but the Mets could have used the rookie slugger’s bat as Kershaw allowed only two more hits following Davis’ early homer through the sixth.

The Mets loaded the bases and chased Kershaw in the seventh, but after Amed Rosario laced an RBI single to pull them within 7-2, Davis grounded out against reliever Joe Kelly for the third out.

“They executed with runners in scoring position tonight, and we didn’t,” Davis said.

After sweeping a four-game series against Arizona earlier this week, the loss dropped the Mets back to three games behind the Cubs in the wild-card standings with 15 games to play.

“It’s the elephant in the room. We all keep track of the opposing teams and who’s in the hunt and who’s not,” Davis said. “We can’t say we aren’t. We’d be lying to you guys.

“The best thing that we can do is just take care of ourselves. You can sit there and worry about the Cubs, you can worry about Milwaukee, but if we’re not winning games, it’s pointless.”

Purchase event tickets to The Amazin’ 1969 New York Mets: A World Championship for the Ages presented by The Paley Center for Media and New York Post. Enter promo code: NYPOST to unlock tickets only available for Post readers.