Was the election of Trump a sign of a conservative or anti-mainstream shift?

Let's assume the Republican candidate for the for the '24 elections would not have been Trump but a generic politician and for the Democrats AOC would have run. Would the R's still have won? Or would people vote for AOC because she is being seen as a rebell against the establishment?