What you've written is mostly correct, but I'm not very convinced by your 'uniqueness of equalizers' argument. In any case, it could be expressed more neatly. What I'd do is as follows.
Let $f : A \to B$ be the kernel of $g : B \to C$. Let $c = \operatorname{coker}(f) : B \to Q$. We want to show that $f=\ker(c)$, which amounts to showing that $f$ equalizes $c$ and $0$. So suppose $p : P \to B$ has $cp=0$.
Since $cf=gf=0$ and $c$ is a coequalizer, there is a unique $q : Q \to C$ with $qc=g$. But then $0=q0=qcp=gp$, so $gp=gf=0$ and so there is a unique $u : P \to A$ with $p=fu$. Thus $f$ equalizes $c$ and $0$, so $f = \ker(c)$, as desired.
This is illustrated in the following makeshift commutative diagram.
$$\begin{array}{ccccccccc} &&P&&&&&& \\\ & \overset{u}{\swarrow} & & \overset{p}{\searrow} &&&&& \\\ A && \xrightarrow{f} && B && \xrightarrow{g} && C \\\ &&&&& \underset{c}{\searrow} && \underset{q}{\
earrow} & \\\ &&&&&& Q & \end{array}$$