Bubba Wallace was in contention to win the NASCAR Cup Series race at Homestead-Miami Speedway before Kyle Larson took the checkered flag.