Let $H$ be the orthocenter of an acute-angled triangle $ABC$ with $AC\ne BC$. The line through the midpoints of the segments $AB$ and $HC$ intersects the bisector of $\angle ACB$ at $D$. Suppose that the line $HD$ contains the circumcenter of $\triangle ABC$. Determine $\angle ACB$.