Let $X$ and $Y$ be homeomorphic to the Cantor set and pick $x_0\in X$.
Suppose $f\colon X\to Y$ is a continuous function such that $f\upharpoonright X\setminus\{x_0\}$ is injective. Must $f$ be injective? Well, $X$ is disconnected so we can't apply the Darboux property directly.
