In topology we have the classic result,
A space $X$ is Hausdorff if and only if the diagonal $\Delta = \{(x ,x) : x \in X\}$ is closed in $X \times X$.
Proof. But note that the product topology is used in the proof (which is essential). In this case, we are thinking in the product space $X\times X$ in order to reach conclusions about the structure in the space $X$. But what if we think about the diagonal of a space that is a product between two sets?
More specifically, I would like to think of the similar result for metric spaces, that the diagonal is closed.
Let $M$ be a metric space. For all $z\in M\times M\setminus \Delta$ exist an open ball of center $z$ in $M\times M$ that is disjoint from $\Delta$.
Again in the proof of this result, a specific metric in the product space is used. So I would like to know if it is possible to generalize the results. In the sense that given a metric space $(M,d)$, where $M= X \times X$ for some $X\neq \emptyset$, for all $z=(x,y)\in M\setminus \Delta$ exist $B(z,r)$ such that $B(z,r) \cap \Delta = \emptyset$.
In other words, I'm thinking about a product space in a generic metric. I couldn't find any proof for this result using a generic metric, every proof involves the metric given in proof, or some topologically equivalent. This result may not be true in this case, but I couldn't think of a counterexample or a proof. But if it is false, what condition is it possible to put in space or in the metric for the result to be true?