Proof (three-point lemma for isometries)

Suppose $f\neq\text{Id}_X$ and so $f(y)\neq y$ for some $y\in X$.

Note that for all $i=1,2,3$, $$ |f(y) - x_i| = |f(y) - f(x_i)| = |y - x_i|. $$ By the kite lemma, the case for $i=1$ and for $i=2$ gives $$ x_2 - x_1 \perp f(y) - y \neq 0,$$ while the case for $i=1$ and for $i=3$ gives $$ x_3 - x_1 \perp f(y) - y.$$

Since $x_1,x_2,x_3$ are not collinear, $f(y)-y$ is perpendicular to two non-collinear vectors, which is impossible.