Jacksonville had the better Josh Allen on this Sunday, with the standout linebacker intercepting a pass, making a sack and recovering a fumble in a 9-6 upset of the Buffalo Bills.

Buffalo’s star quarterback with the same first and last names turned over the ball three times, including twice in the second half. He didn’t have a second-half turnover in any previous game this season.

The Bills (5-3) lost for the second time in seven games. The Jaguars (2-6) rebounded from a debacle at Seattle a week ago.

ALSO READ | NFL: Matt Ryan stars with 2 TD passes as Atlanta Falcons top New Orleans Saints

Buffalo’s Allen completed 31 of 47 passes for 264 yards, with the two interceptions and a fumble.

The first of two deciding moments came on a third-and-2 play at the Jaguars 37 with about 5 1-2 minutes remaining. Allen fumbled after getting pressured by Dawuane Smoot. The other Josh Allen recovered.

Buffalo got the ball back in the waning minutes and advanced to the Jaguars 39. But Smoot sacked Allen on third down. It was Jacksonville’s fourth sack of the day.

Allen got the first one. It was the first time a player sacked a quarterback with the same name since the NFL started counting sacks in 1982.

ALSO READ | NFL: Le’Veon Bell’s 1-yard TD pushes Baltimore Ravens to victory against Minnesota Vikings

Allen and Allen had been looking forward to this meeting, although Buffalo’s Allen made it clear he didn’t want to get acquainted with Jacksonville’s Allen in the backfield. It nonetheless happened when Allen beat Dion Dawkins off the edge.

ALSO READ | Cordarrelle Patterson, the Falcons gadget player who is turning into fantasy darling

The players with the same first and last name had never meet before Sunday even though they were both selected with the seventh pick in consecutive NFL drafts. They have exchanged messages via social media.

Jaguars kicker Matt Wright missed three straight field-goal attempts – all left – in a matter of minutes in the third quarter. Wright did have three field goals for all his team’s points, hitting from 39, 55 and 21 yards.