This just expands on lulu's answer. (Note: if the $\text{mod}$ is left out, assume $\pmod M$).
First, notice that for a prime modulus $M$, every residue has exactly two roots. Every residue is congruent to $r^2$ for some $r$. To prove that the only solutions to $x^2\equiv r^2$ are $r$ and $-r$ and there is no third solution, we can factor to $(x-r)(x+r)\equiv 0$. If $x$ is not equal to $r$ or $-r$, then the left hand side is the product of two nonzero numbers, which is nonzero modulo a prime number (this is not true if $M$ is not prime, e.g. $3\cdot 3\equiv 0\pmod 9$, which leads to the counterexample in the comments).
Thus, if $l$ and $k$ are collisions of the same parity, we would have $l^2\equiv k^2$, which would imply $l=M-k$, but that is impossible as they are of the same parity and $M$ is odd.
Similarly, if they were collisions of opposite parity, then $-k^2\equiv l^2$. Then multiplying by $\left(k^{-1}\right)^2$ on both sides, $-1\equiv \left(l\cdot k^{-1}\right)^2$, which is impossible when $M\equiv 3\pmod 4$.