Whenever someone pulls out the “dEmOcRaTs WeRe ThE cOnFeDeRaTeS” argument, you know they’re either dumb as fuck or arguing entirely in bad faith. Like bro the parties switched in the 1960s it’s just names at this point.
Saying the parties "switched" is a large oversimplification. But yes, as the Democrats became anti segregation, it had dissatisfied white, racist, voters in the south. Of which Republicans, were all too happy to cater to, thus the "switch".