Civil war was a civil war, with the country split into two sides. Regional bonds took precedence over national ones but the military of each faction sided with the people of their region. Japanese internment and native Americans involved minorities. The soldiers didn't come from those communities, and native americans were barely considered people much less Americans. It doesn't take much to get the majority to take action against a minority, but that's not an existential threat to democracy.