Logano made it a banner day for Team Penske, which won the IndyCar race with Will Power earlier in the day in Detroit.
By the end, Logano had watched Kyle Busch drive away from him on a restart with 13 laps remaining
Then got another chance when Kevin Harvick crashed with five to go.
That led to a green-white-checkered finish at the 1¼-mile hairpin east of St. Louis
And Busch chose the outside lane as Logano drove his No. 22 car to the inside once again
All the drama kept a sellout crowd of more than 60,000 on its feet in the blistering afternoon sun.
Chastain wound up finishing seventh, Elliott was 21st and Hamlin finished 11 laps down in 34th place.
Joey Logano won his second Cup points race of the season Sunday after a dramatic duel with Kyle Busch in overtime at World Wide Technology Raceway.