Let $X,Y$ be metrizable compact spaces, with $X$ connected, and $f\colon X \to Y$ a continuous function onto $Y$. Suppose $f$ is almost one-to-one in the following sense: there exists $Y' \subseteq Y$, a dense $G_\delta$, such that $\# f^{-1}(y) = 1$ for all $y \in Y'$. Then, can happen that $Y\setminus Y'$ is dense in $Y$?
I have this situation in another problem and it is hard for me to image a that $Y$ has both a dense set of point where $f$ has a unique preimage and a dense set of points where $f$ has two or more preimages.