Another source of counter examples is matrix multiplication. Since matrix multiplication is just the composition of linear functions over a vector space.
Consider,
$$ A = \left[ \begin{array} \ 0 & 1 \\ 1 &1\end{array} \right]$$
$$ B = \left[ \begin{array} \ 0 & 1 \\ 0 &1\end{array} \right]$$
$$ C = \left[ \begin{array} \ 0 & 0 \\ 0 &1\end{array} \right]$$
$$ AC = \left[ \begin{array} \ 0 & 1 \\ 1 &1\end{array} \right]\left[ \begin{array} \ 0 & 0 \\ 0 &1\end{array} \right] = \left[ \begin{array} \ 0 & 1 \\ 0 &1\end{array} \right]$$
$$ BC = \left[ \begin{array} \ 0 & 1 \\ 0 &1\end{array} \right]\left[ \begin{array} \ 0 & 0 \\ 0 &1\end{array} \right] = \left[ \begin{array} \ 0 & 1 \\ 0 &1\end{array} \right]$$
$$ AC = BC$$
So we have that the composition of $A$ with $C$ is the same as the composition of $B$ with $C$ even though $A\neq B$.