A look at the boxscore shows Amar’e Stoudemire had a superb statistical game for the Knicks yesterday. A look at the final score — and Stoudemire’s performance over the final minutes — shows he wasn’t as good as his numbers.

Twice in the final two minutes of the Knicks’ 106-96 loss to the Sixers at the Garden, Stoudemire headed to the free throw line. He came away with two points.

The Knicks, who led by a point with 4:30 remaining after a tip-in by Stoudemire, couldn’t close the game out. And although Stoudemire scored the Knicks’ final seven points, he had some struggles down the stretch, including a key turnover that led to a fast-break Philadelphia basket.

Stoudemire scored a game-high 21 points and a game-high 15 rebounds. But he could have had more if he hadn’t missed those two free throws.

“That doesn’t bother me at all,” Stoudemire said of those misses. “We lost the game in the third quarter. A lot of fouling put those guys on the line. . . . That’s where we lost the game.”

Stoudemire’s misfires from the line weren’t the main reason the Knicks lost, and he did make some big plays earlier in the fourth quarter. But he might have been able to change things if he had come through at the line.

When he was fouled with 1:46 to play, the Knicks were down 102-94. Hitting both free throws would have made it a six-point, two-possession game. Stoudemire, however, hit only one.

Thirty-three seconds later, Stoudemire with the Knicks down seven. Again, he only went one of two, cutting it to just six, 102-96. That was the last point the Knicks scored.

Earlier, Stoudemire threw away a pass with 3:13 to go and the Knicks trailing by four. The errant toss was picked off by Sixers rookie Evan Turner, who converted it into a fast-break layup and a 100-94 Philadelphia lead.

“I think we did a very good job on Amar’e today,” Sixers coach Doug Collins said.

Should the Knicks have looked for Stoudemire in the post over the final minutes?

“We’ve got to figure out what the plan is as far as down the stretch,” Stoudemire said. “We’re a young team, we’re just really together for the first time this year. . . . We’re still learning about what type of team we are and what we can do down the stretch.”