Stephen Lew-USA TODAY Sports

Josh Giddey recorded 31 points, 10 assists and nine rebounds and the Oklahoma City Thunder remained alive for a Western Conference playoff spot by notching a 123-118 victory over the host New Orleans Pelicans on Wednesday night in a play-in game.

Shai Gilgeous-Alexander scored 25 of his game-high 32 points in the second half and Luguentz Dort added 27 points for the Thunder, who will visit the Minnesota Timberwolves on Friday night. The winner will earn the No. 8 seed in the West and face the top-seeded Denver Nuggets in the first round of the playoffs.

Brandon Ingram registered 30 points, seven assists and six rebounds for the Pelicans, who were outscored by 11 points in the second half. Trey Murphy III scored 21 points, Herbert Jones added 20 and Jonas Valanciunas contributed 16 points and 18 rebounds for New Orleans.

Oklahoma City went ahead to stay on Gilgeous-Alexander's basket with 28.3 seconds left. Gilgeous-Alexander tallied eight points in the final 1:40.

Jalen Williams added 11 points for the Thunder, who shot 45.7% from the field, including 11-of-37 (29.7%) from three-point range.

CJ McCollum added 14 points for New Orleans, which made 48.3% of its shots and was 9-of-28 (32.1%) from behind the arc. The Pelicans were again without oft-injured Zion Williamson, who hasn't played since Jan. 2 due to a hamstring injury.

Ingram knocked down a 17-footer to give New Orleans a 114-112 lead with 1:21 remaining. Oklahoma City's Jaylin Williams split two free throws with 59.8 seconds left before McCollum missed a floater for New Orleans with 37.9 seconds to play.

Gilgeous-Alexander then drove and lofted in the short shot to give the Thunder a 115-114 edge. Ingram missed an 16-footer with 18.4 seconds left before Giddey made two free throws with 12 seconds remaining.

Ingram split two free throws with 10.4 seconds left to bring the Pelicans within two. Dort made two free throws with 6.2 seconds left before Ingram buried a three-pointer to cut the New Orleans deficit to 119-118 with 4.3 seconds left.

Gilgeous-Alexander made four free throws in the final 2.8 seconds left to seal it.

The Thunder trailed by six at halftime before Gilgeous-Alexander scored 17 points in the third quarter. Oklahoma City outscored the Pelicans 39-24 in the period.

The Thunder led 96-87 entering the final stanza before New Orleans went on a 14-4 spurt. Josh Richardson's dunk gave the Pelicans a 101-100 lead with 7:59 remaining.

Jones and Murphy each scored 15 first-half points as the Pelicans led 63-57 at the break. Dort had 20 in the half for Oklahoma City.

More must-reads:

TODAY'S BEST
Do Oilers need more from Connor McDavid to get to Stanley Cup Final?
All-Rookie teams show gems available all over draft
The NBA has not witnessed this much parity in 50 years
Knicks expected to be 'aggressive' in upgrading their roster
Drew Bledsoe offers advice for Patriots rookie QB Drake Maye
2024 AFC revenge games: Brothers, 'Stefon Diggs Bowl' to take center stage
2024 NFC revenge games: Which game should Cowboys, others have circled?
How All-Star Race victory could turn Joey Logano's season around
Xander Schauffele's triumph could open the floodgates for his career
Anderson Silva, Chael Sonnen will finish off their trilogy in a boxing ring
Ranking the five best MLB free-agent signings of offseason
Veteran WR, former first-round pick announces NFL retirement
Oilers advance to West Final again after holding off Canucks in Game 7
Bengals star WR not expected to sign franchise tender before OTAs
Red Sox RHP diagnosed with ligament damage in elbow
Watch: Caitlin Clark shows off range with logo three, but Fever fall short
Former Dolphins receiving leader announces his retirement from NFL
Detroit Lions dominate PFF's top-25 players under 25
Hall of Famer, legendary Raiders offensive lineman dead at 86
Report: Cavs owner 'would never' trade Donovan Mitchell to this team