Indiana was outgained by Penn State by a 2-to-1 margin on Saturday.

But you know what matters: The scoreboard. And there, IU ended with a one-point win and a victory over a ranked opponent.

Following are grades after the Hoosiers’ 36-35 overtime victory at home:

Indiana pass offense: D+

Michael Penix Jr. struggled to get into any sort of flow in the passing game, hitting only 19-of-36 passes for 170 yards with a touchdown and an interception.

In particular, he struggled to get the ball down the field; his longest completion was 21 yards. He forced the ball, like on a couple of passes in the third quarter, one into coverage that was picked off and one too deep.

But Penix connected on a couple of big throws when needed, like on third down to Miles Marshall early in the fourth quarter, helping IU to a field goal that pushed its lead to 20-14 a few plays later.

Then, after PSU had taken the freebie 28-20 lead with less than two minutes left, Penix was fantastic on the ensuing drive, hitting four consecutive passes to set up his own 1-yard touchdown run, plus the 2-point conversion for the tie.

Indiana run offense: D+

Stevie Scott had some big-time Big Ten rushes, particularly his second-quarter 14-yard touchdown run in which he just bowled dudes over on his way to the end zone. Unfortunately, IU’s rebuilt offensive line didn’t often open those kinds of holes; Scott finished with 57 yards and two touchdowns, averaging 2.9 yards per attempt.

Penix gained only 1 rushing yard, which doesn’t make any sense but it’s true. (Sacks made his total minus-18). But the 1 yard was big, the touchdown that brought IU to within two.

Even bigger?

Penix’s two 2-point conversions. On the first, which tied the score at 28 late in regulation, IU went RPO, letting Penix make the decision. When PSU’s linebackers pinched in, he kept the ball, dancing around to find a lane — and get by the free man — for the end zone.

The second was magnificent. There was a feeling coach Tom Allen might go for two in the first overtime, trying to give his underdog Hoosiers a chance. Penix raced for the left pylon and, in one of the most athletic moves you might see, he extended the ball toward the pylon while diving but staying inbounds. It was called a successful conversion on the field and upheld by replay. Perhaps has there never been so close a call, with the tip of the ball perhaps crossing the white of the goal line before touching out of bounds, then the pylon.

Offense overall: C-

OK, so figure this one out: IU scored 36 points, but gained only 211 yards. It had a turnover, possessed the ball for only 19:38 and was just 4-of-12 on third downs, 0-1 on fourth. However, IU scored on all five of its trips in the red zone, including in the fourth quarter and overtime. It got both of its must-have 2-point conversions.

IU had a very narrow path to victory in the fourth quarter, yet it found the way forward.

Indiana run defense: C-

Penn State’s offense is fairly vanilla, but it used that to gain 250 net yards on the ground with a 4.8 ypc average. Quarterback Sean Clifford ran for 119 yards, including an ugly (for Indiana) 35-yard touchdown at the end of the third quarter.

Yet, IU got a couple of huge stops — and another intentional non-stop — late in the game. The Hoosiers bottled up PSU on a third down with five minutes to go in the fourth, then on fourth down, Cam Jones made a textbook tackle to turn the Nittany Lions over inside IU territory.

And then the play late … Indiana purposefully gave PSU a touchdown with 1:42 remaining, realizing that was the only chance to get the ball back with a one-possession deficit. Rarely does it work, but it did Saturday.

Indiana pass defense: C+

Clifford doesn’t do much exciting in the Nittany Lion passing game, and Indiana made him pay a couple of times.

During a first half in which IU bounced to an early lead, Jamar Johnson’s interception helped the Hoosiers score 14 points in only 90 seconds. Jaylin Williams had a pick, as well, and although IU had only one sack, it was a big one. Devon Matthews’ QB takedown came on a fourth-quarter third-down to stymie a PSU drive.

Clifford finished with 238 yards passing and three TDs but with two interceptions. The worst play for IU was a big one, when the Hoosiers’ secondary got all sorts of turned around — the safeties were peeking into the backfield — and allowed Jahan Dotson a 60-yard bomb. At the time, PSU led 21-20 lead with 2:30 left and looked poised for the comeback win.

Defense overall: C

IU gave up 488 yards to the Nittany Lions, but the Hoosier defense created three turnovers, an early one giving IU a first-half lead. The decision to intentionally let PSU score to make it 28-20 with less than two minutes left proved to be a great choice.

Special teams: A-

Indiana won, in part, because kicker Charles Campbell was 2-of-2 on field goals and Penn State was 0-of-3. Nittany Lions kicker Jordan Stout nearly knocked in a 57-yarder near the buzzer to give PSU the win, but it came up about a foot short.

Why he even got an attempt was a bit bizarre. After IU tied the game, kickoff man Jared Smolar squibbed one into the PSU return team. It didn’t travel far and that gave the Lions a chance in the final seconds. Just a bizarre and almost costly very mistake.

The coverage was fine for the Hoosiers and the return games didn’t amount to much.

Coaching: A

Tom Allen won this game.

Penn State had the ball, leading 21-20 with 1:47 remaining on IU’s 14-yard line. And Allen did what coaches always consider but can never quite muster up the courage to do: He let PSU score a walk-in touchdown. With the extra point, the Lions were up eight, but at least IU got the ball back with a chance to tie.

It did.

And Allen’s decision to go for two in the first overtime was wise as well. As the home underdog, it’s best to try to end the game as soon as possible. The decision-making at the end of the first half was not great, but the second half and OT more than made up for it.

Overall: B

IU got drilled statistically, but you know what they say: Stats are for losers. Indiana won because it made plays at the end when it appeared the Hoosiers were all but dead.