Let $R$ be the ring $R=\mathbb C[x,y]$, and let $B$ be the $5$-dimensional $R$-module with shape like a 'W'. That is, basis elements are $a_1,a_2,a_3,b_1,b_2$ and the module structure is given by $$y \cdot a_1=b_1,$$ $$x \cdot a_2=b_1,$$ $$y \cdot a_2=b_2,$$ $$x \cdot a_3=b_2,$$ and all other products of generators and basis elements are zero. Let $A=\mathbb C$ be the trivial $R$-module and consider the parallel morphisms $f,f' \colon A \rightarrow B$ defined by $f(z)=zb_1$ and $f'(z)=zb_2.$ Now ${\mathrm{coker}} \; f \simeq {\mathrm{coker}} \; f'$ as $R$-modules, but $f$ and $f'$ are non-isomorphic in $\mathrm{Mor}(\mathrm{Mod} \; R)$. This gives an example in the derived category of $\mathrm{Mod} \; R$.