Why is it true that (at least in an abelian category) if we have arrows $$A \hookrightarrow B \hookrightarrow C \simeq A$$ then $A \simeq B$? This seems like a categorical version of Cantor-Bernstein but I am not able to justify this formally.
(This question is motivated by the fact that this is used on page 178 of Kashiwara-Schapira, Categories and sheaves, where a null sequence of two arrows $X' \xrightarrow{f} X \xrightarrow{g} X''$ is considered; in this case $A=\mathrm{im} f$, $B= \ker u$, $C=\ker(X \to \mathrm{coker} f)$ with $u=\ker g \to X \to \mathrm{coker} f$.)