The two-time Xfinity Series champion from Corning, California, led a race-high 38 of 86 over-scheduled laps before fending off Chastain in overtime to grab his second Cup Series career victory.
Chase Elliott finished third in the M&M's Fan Appreciation 400 at Pocono, but was awarded the win when first and second place winners Denny Hamlin and Kyle Busch were disqualified.
The 2020 Cup Series champion was awarded his fourth victory of 2022 at the Tricky Triangle following the post-race disqualifications of race winner Denny Hamlin and runner-up Kyle Busch.
The 27-year-old native from Norman, Oklahoma, became the 14th different competitor to secure a spot for the 2022 Cup Series Playoffs by winning at the Magic Mile.