Yes they are, it's only that one had chains and the other has invisible chains, but both struggles have the same affect on the individual in the end. They both end up bitter and mad because they were seen and treated as low class citizens (taking out the trash for those whom they probably felt didn't deserve the trash being taken out for them), but there they were either being forced or invisibly coerced to do what they had to do anyway, only the slaves were even treated as worse than that.
Anytime we allow or engage in working people in ways that demean them as human beings, it is the same result and consequences in the end, but only in different degree's is all.
Invisibly coerced? That's a new one!
Illegals come here from Mexico of their own free will, no one is making them do it, and they certainly don't have to stay. In fact, there are great many Americans who think they should go! Others think, if we can't make them go, we should at least make them pay taxes, because right now, they contribute nothing to their communities or state.
You say only the slaves were treated worse, and again, I strongly disagree. Aside from the obvious fact they have a choice to leave and go back anytime they want to, yet they continue to flood across our border, they are given free emergency medical care, education for their kids, hell... citizenship for their kids! Let's talk about a few examples which are markedly worse... Like the indigenous peoples, who we call "Native Americans," but who were here long before America or European settlers. These people had their lands STOLEN, were given smallpox, then they were marched to their deaths on the Trail of Tears, where we stuck them in what amounts to a concentration camp, to live out their days. This, after killing tens of millions of their ancestors. In my opinion, their story is even worse than the slaves.
Then, we can also talk about the Chinese immigrants who built the railroad. Or the Irish immigrants, or the Italian and German immigrants, and how they were discriminated against for years in society. So we have to go WAY down the list before we get to the "deplorable treatment" of people who are breaking our law to come here illegally, of their own free will.
You are trying to connect slavery and illegal immigration, by drawing a correlation to 'greedy capitalism', which is simply a Marxist meme and has recently become popular among Socialist morons. It's a topic that warrants it's own debate, and has nothing whatsoever to do with the issues of slavery or illegal immigration.