November 29, 2019 | 12:08am | Updated November 29, 2019 | 1:49am

STARKVILLE, Miss. — Luke Morgan missed a 35-yard extra point after Mississippi receiver Elijah Moore was penalized for celebrating a touchdown by crawling and pretending to urinate like a dog, a la Odell Beckham Jr., and Mississippi State ended up with a 21-20 victory on Thursday night in the 116th Egg Bowl.

Beckham infamously sparked a lot of controversy when he pretended to urinate like a dog in the Giants’ 27-24 loss to the Eagles on Sept. 24, 2017, that eventually led to a 3-13 season and the firing of coach Ben McAdoo.

Ole Miss receiver Elijah Moore was penalized for celebrating a touchdown by crawling and pretending to urinate like a dog.
Ole Miss receiver Elijah Moore was penalized for celebrating a touchdown by crawling and pretending to urinate like a dog.AP

Ole Miss (4-8, 2-6 Southeastern Conference) pulled within a point with 4 seconds remaining on Matt Corral’s 2-yard pass to Moore, but Logan hooked the extra point after Moore cost the Rebels 15 yards.

“That’s not who we are. We’ve been a disciplined team all year, and so just disappointed that happened,” Rebels coach Matt Luke said. “That’s not who he is. Elijah is a good kid, and he just got caught up in the moment.”

Mississippi State (6-6, 3-5 Southeastern Conference), coached by former Fordham coach Joe Moorhead, beat Ole Miss at home for the first time since 2013.

The teams combined for seven sacks and 17 tackles for loss, and Mississippi State won the turnover battle 3-1.

The Bulldogs scored two first-half touchdowns, the first on Nick Gibson’s 27-yard run and the second on the next possession on quarterback Garrett Shrader’s 1-yard run. Ole Miss responded with two touchdowns of its own, with J.R. Plumlee scoring on a 2-yard run and Jerrion Ealy on a 5-yarder to tie it at 14 at the half.

Midway through the third quarter, the Bulldogs sacked Plumlee three times on the same drive, the third forcing a fumble. Seven plays later, Shrader scored on a 5-yard run to put Mississippi State up 21-14.

On the final drive of the game, Mississippi State committed three of its five total penalties and Ole Miss ran nine plays inside the 15 before eventually connecting for the touchdown.