Let $\Gamma_2$ be the graph with the same vertex set as $\Gamma$, but with two vertices in $\Gamma_2$ adjacent if and only if they are at distance two in $\Gamma$. Your professor's argument is valid provided $\Gamma_2$ is connected. But if $\Gamma_2$ is not connected then $\Gamma$ must be bipartite and, since it contains triangles, it is not bipartite.
To see my first claim, if $a$ and $b$ are vertices at distance two and $c$ is at distance two from $b$, then $a$ and $c$ must have the same valency, and so it follows that vertices in the same component of $\Gamma_2$ have the same valency in $\Gamma$. For the second claim, the key is that any two vertices that lie on an odd cycle must have the same valency.