I am working with the following definition of the Gromov-Hausdorff distance for two metric spaces $X$ and $Y$:
$d_{G-H}(X, Y) = \inf\{d_H(X, Y) : d \text{ is admissible on } X \sqcup Y \}$, where admissible on the disjoint union $X \sqcup Y$ means that $d$ extends the metrics of $X$ and $Y$.
I read the following example with the independent metric spaces $X =[0,1]$ and $Y = [1,2]$. $d_{G-H}(X, Y) = 0$, as they are isometric. But if I consider $X \sqcup Y$ = $\{(0, x), (1, y) : x \in X, y \in Y\}$, then according to this metric we would have, for example, $d((0,0), (1,1)) = 0$ right? But then this would not be a metric because $(0,0) \neq (1,1)$?