It was a performance that did nothing to restore the faith of an increasingly concerned fan base, and in fact the Thunder’s nail-biting 112-111 victory over Detroit in the regular season finale on Wednesday night inside Chesapeake Energy Arena only doused more doubt onto this team as it prepares for the postseason.

But in the end, all that mattered was the Thunder secured the No. 2 seed in the Western Conference playoffs, assuring OKC will have home-court advantage through at least the semifinals.

The first-round opponent will be the Memphis Grizzlies, the team that knocked OKC out of the postseason last year while Russell Westbrook was recovering from knee surgery. Game 1 is Saturday at 8:30 p.m.

“We’re excited,” said Thunder coach Scott Brooks. “We play a long season. Every team goes through a long NBA season to get ready for this part of the year. Our guys are excited…They know we have a lot of work ahead of us.”

Kevin Durant capped what will likely be his first MVP season with a 42-point effort, scoring 21 in the fourth quarter to lead a crazy comeback. The Thunder trailed, 87-79, going into the fourth quarter and stared at a 10-point deficit inside the final 10 minutes.

Durant supplied the game-winner with a driving dunk off an inbounds pass from Westbrook with 16.5 seconds remaining. Pistons guard Brandon Jennings hit the front of the rim on a 31-foot leaning heave at the buzzer.

“We just figured it out and got it done,” Durant said. “It wasn’t the best game. We didn’t play well defensively. We didn’t shoot the ball well offensively. But it’s something about just getting it done and having that will power and having that fight in you no matter what. Through a tough game, we persevered and we got a good win.”

Durant finished the season with a career-best 32-point scoring average. He joined Kareem Abdul-Jabbar, Bob McAdoo and Michael Jordan as the only players in the last 45 NBA seasons to average at least 32 points, seven rebounds and five assists.