By the definition of disjoint union, for example, for $X=\{1,2\}$, $Y=\{3,4\}$, we have $X\sqcup Y=\{(1,1),(2,1),(3,2),(4,2)\}$, the index set is $\{1,2\}$ here. Thus in the rigorous sense we have $(X\sqcup Y)\cap X=\varnothing$?
Firstly I think that the disjoint union is just treated as an equivalent class, but in this case we cannot do the operation like $\cup$ and $\cap$. The result depends on the choice of the representatives.
Someone tells me that when we consider the disjoint union we fix the index set, some equations like $A\sqcup B=A\sqcup B$ do not make sense when we lose the information of index sets. But how about the well-known proposition: $$A\sqcup B=A\cup B\quad iff\quad A\cap B=\varnothing$$