Let $\displaystyle (AB)_{ij} = \sum_{k=1}^{n}a_{ik}b_{kj}$ $ ~~~~~\longleftarrow$ (this might not even be that relevant).
Why does $i \ne j \in \left\{1, \ldots, n \right\}$ implies $i \ne k$ or $k \ne j$?
If $i \ne j$ then $i \ne k$ because $k \in \left\{1, \ldots, n\right\}$ which contains $j$.
My question is where does the ***'or'*** bit come from?