@TedShifrin @AkivaWeinberger Here's a counterexample which I think works. Let $X = [-1, 1] \times \{0, 1\}/\sim$ where $(x, 0) \sim (x, 1)$ iff $x \neq 0$ be the interval with two origins. Consider the projection map $p : [-1, 1] \times \{0, 1\} \to [-1, 1]$ defined by $p(x, \{0, 1\}) = x$. It is clear that $x \sim y$ in $[-1, 1] \times \{0, 1\}$ implies $p(x) = p(y)$, so universal property gives me a map $f : X \to [-1, 1]$ (namely, just identify the two origins). $X$ is a quotient of a compact space, hence is compact. $[-1, 1]$ is clearly Hausdorff. I think it is also visually clear than …