But it is the same. The Confederacy was not instituted because of racism. It was instituted because of the area's economic dependency on slavery.The point at this stage is not which caused which; slavery or racism, who sold who into slavery, or the 3/5th clause, etc. This is about the intentions of the Confederacy, and why that former regime and its emblems are offensive to people today.
In other words, it's racism (together with the slavery it intended to justify) as the basis of the Confederacy's desire to secede, not "racism as the basis [meaning "cause", as you seem to be taking it] of slavery" [see below]. They didn't care who started slavery; they just didn't want it to end, and had built a whole belief system to justify it (which would actually suggest your point "racism was not the cause"; it came afterward, as the effect). So that's not what's being argued against.
When the African merchants sold slaves, most captured in war, "At that time, there was no concept of being African – identity and loyalty were based on kinship or membership of a specific kingdom or society, rather than to the African continent." (The slave trade's effect on African societies - Implications of the slave trade for African societies - Higher History Revision - BBC Bitesize) It was once in Western captivity, that this thing called "race" became the deciding factor, and people discriminated against for it (whether by slavery, its replacement Jim Crow or anything else).
That's what I meant by "racism as the basis of slavery"; "basis" being not a timelike meaning of causation, but as the already established [by then] rationale (justification), that the people were inferior. The Confederates weren't protesting "We bought those slaves from the African merchants, and [no matter who they are], taking this property from us is just one of other more important things we are seceding over". What they said was was that "we are fighting to maintain the heaven-ordained supremacy of the white man over the inferior or colored race", and "the negro is not equal to the white man; that slavery, subordination to the superior race, is his natural and normal condition".
So no; no one here is saying "racism" came first; nor does it make a difference at this point.
The problem is the US inherited a system of slavery from England (slavery was legal). Slavery did not exist because of racism, but it existed because black men provided other black men as slaves to slave traders who wanted to make a profit by selling these slaves to white men who wanted to invest in a sustainable and all things considered cheap means of labor so the institution of slavery became an economic necessity for one area of the nation.
It was not about racism. Northern white men were just as racist as Southern white men. The difference was a dependence on slavery.
Where racism comes into play is after the emancipation as systemic racism (racism in the actual system of government against a people not because they are slaves but because of their race) is enacted.