My long and inelegant proof:
Suppose the lines $ax+by+c=0$ and $dx+ey+f=0$ contain both $\left(p,q\right)$ and $\left(r,s\right)$. Then:
$$ap+bq+c \overset{1}{=}0,
\\ar+bs+c \overset{2}{=}0,
\\dp+eq+f \overset{3}{=}0,
\\dr+es+f \overset{4}{=}0.$$
Taking $\overset{1}{=}-\overset{2}{=}$ and $\overset{3}{=}-\overset{4}{=}$, we have:
$$a\left(p-r\right) \overset{5}{=}b\left(s-q\right),
\\d\left(p-r\right) \overset{6}{=}e\left(s-q\right).$$
If $p=r$, then given that $\left(p,q\right)\neq\left(r,s\right)$, we have $s\neq q$. Since $p-r=0$ and $s-q\neq0$, $\overset{5}{=}$ and $\overset{6}{=}$ imply that $b=e=0$. That is, the coefficient on $y$ for each of our two lines is zero. Hence our two lines are simply $x=p$ and $x=r$. But of course, $p=r$ and so the two lines are identical.
Now suppose $p\neq r$. Then we have:
$$a \overset{7}{=}b\frac{s-q}{p-r},
\\d \overset{8}{=}e\frac{s-q}{p-r}.$$
Since at least one of $a$ or $b$ must be non-zero, $\overset{7}{=}$ implies that both $a$ and $b$ must be non-zero.
Similarly, since at least one of $d$ or $e$ must be non-zero, $\overset{8}{=}$ implies that both $d$ and $e$ must be non-zero.
Using $\overset{7}{=}$ and $\overset{8}{=}$, we rewrite $\overset{1}{=}$ and $\overset{3}{=}$ as:
$$\frac{s-q}{p-r}p+q+\frac{c}{b} \overset{9}{=}0,
\\\frac{s-q}{p-r}p+q+\frac{f}{e} \overset{10}{=}0.$$
Taking $\overset{10}{=}-\overset{9}{=}$, we have:
$$\frac{c}{b}\overset{11}{=}\frac{f}{e}.$$
We now show that a point $\left(t,u\right)$ is in the line $ax+by+c=0$ if and only if it is also in the line $dx+ey+f=0$. We will thus have shown that the two lines are identical:
\begin{alignat*}{2}
& & at+bu+c & =0\\
\overset{7}{\iff} & & b\frac{s-q}{p-r}t+bu+c & =0\\
\iff & & b\left(\frac{s-q}{p-r}t+u+\frac{c}{b}\right) & =0\\
\iff & & \frac{s-q}{p-r}t+u+\frac{c}{b} & =0\\
\overset{11}{\iff} & & \frac{s-q}{p-r}t+u+\frac{f}{e} & =0\\
\iff & & e\left(\frac{s-q}{p-r}t+u+\frac{f}{e}\right) & =0\\
\iff & & dt+eu+f & =0.
\end{alignat*}