My understanding of the definition of a manifold is essentially a topological space that locally looks like $\mathbb{R}^n$ for some $n$. That is, a topological space $M$ is a manifold (of dimension $n$) iff $M$ is Hausdorff and second-countable, and each $p\in M$ is contained in a chart $(U, \varphi)$ such that $\varphi$ is a homeomorphism from $U$ to an open subset of $\mathbb{R}^n$.
My question: Why do we need the Hausdorff condition? That is, isn't $M$ being Hausdorff implied from $M$ being "locally homeomorphic" to $\mathbb{R}^n$? (Note: I am aware this isn't precisely the definition of "locally homeomorphic").
For instance, we can take any two points $p, q\in M$ with $p\neq q$. If they both lie in some chart $(U, \varphi)$, then we may construct disjoint open balls $B_p, B_q$ around $\varphi(p)$ and $\varphi(q)$ respectively. Then, since $\varphi$ is a homeomorphism, $\varphi^{-1}(B_p)\cap \varphi^{-1}(B_q)=\emptyset$ with $\varphi^{-1}(B_p), \varphi^{-1}(B_q)$ disjoint open sets in $M$ containing $p, q$ respectively.
If they don't lie in the same chart, then pick a chart $(U, \varphi)$ containing $p$ and $(V, \psi)$ containing $q$. If $U\cap V=\emptyset$ then we are done. So, suppose $U\cap V\neq \emptyset$. Then, since $p\in U$ and $q\in V$, we have that $U\setminus V$ and $V\setminus U$ are nonempty. Now, consider an open ball $B_p\subseteq \varphi(U\setminus (U\cap V))$ containing $\varphi(p)$ and an open ball $B_q\subseteq \psi(V\setminus (U\cap V))$ containing $\psi(q)$. We see that, again, $\varphi^{-1}(B_p)$ and $\psi^{-1}(B_q)$ are disjoint open sets in $M$ containing $p, q$ respectively.
I'm also fairly sure I can prove that this condition implies that $M$ is second-countable, but I'll leave that for another question perhaps. Is there something wrong with this proof? If not, why is Hausdorff included in the definition?