Basic facts about nets: A function $f: X\to Y$ is continuous at $x \in X$ if and only if for every net $(x_\alpha)$ in $X$ converging to $x$ we have that $f(x_\alpha) \to f(x)$; and a set $A \subseteq X$ is closed if and only if for every convergent net $(x_\alpha)$ taking values in $A$ the limit lies in $A$.
Lemma 1. The graph of a continuous function $f: X\to Y$ is homeomorphic to $X$ as a subspace of $X\times Y$ via the projection map $\pi_1((x,y)) = x$.
Proof. We only need to verify that the inverse $x \mapsto (x,(f(x))$ is continuous. Let $(x_\alpha)$ be a net converging to $x$. Then $f(x_\alpha) \to f(x)$ by continuity of $f$ and by the properties of the product topology $(x_\alpha,f(x_\alpha)) \to (x,f(x))$ as desired.
Lemma 2. The graph of a continuous function into a Hausdorff space is closed.
Proof. Let $f: X\to Y$ be as in Lemma 1 with $Y$ Hausdorff. Suppose we have a net $(x_\alpha,f(x_\alpha))$ converging to $(x,y) \in X \times Y$. We are to show that $(x,y)$ is in the graph of $f$, i.e. $y = f(x)$. Certainly we have $x_\alpha \to x$, so $f(x_\alpha) \to f(x)$ and since limits of nets in Hausdorff spaces are unique, we have $y=f(x)$ as desired.
Now we're ready for the proof that your set is closed.
Proposition 3. Let $X$ be Hausdorff and $f,g: X \to X$ continuous. Then $E = \{x \in X\mathrel| f(x)=g(x)\}$ is closed in $X$.
Proof. By the lemmas above $F$ and $G$, the graphs of $f$ and $g$ respectively, are closed in $X\times X$ and $E = \pi_1(F \cap G)$ is the image of a closed set under a homeomorphism, so $E$ is closed in $X$.
That your set is closed follows from using the above with the identity map as $g$.