Proof (local mapping on Riemann surfaces)
Let $(\tilde U, \tilde ϕ)$ be any chart near $y$ and $(U, ϕ')$ be any chart near $x$ such that $f(U) \subseteq \tilde U$ and $ϕ(x) = 0 = \tilde ϕ(y)$. Letting $D := ϕ'(U)\subseteq \C$, $g:= \tilde ϕ \circ f \circ ϕ'\inv: D\to \C$ is an analytic map with $g(0) = 0$.
Let $d\geq 1$ be the local degree of $g$ at $0$, i.e. $$g(z) = c\cdot z^d \cdot g_0(z)$$ where $c\in \C^\times$ and $g_0:D\to \C$ is analytic with $g_0(0) = 1$.
Let $c^{1/d}$ be any $d$-th root of $c$ and choose some branch $h$ of the $d$-th root defined on a neighbourhood of $1$ (e.g. via a power series). Then define $$ \begin{align*} g^{1/d}(z) = c^{1/d} \cdot z\cdot h(g_0(z)) \end{align*} $$ which is defined on some $D(0,r)\subseteq D$ and satisfies $g(z) = (g^{1/d}(z))^d$. Its derivative at $0$ is $c^{1/d} h(g_0(0))\neq 0$.
Therefore by the inverse function theorem for analytic functions, there are open neighbourhoods $E\subseteq \C$, $D'\subseteq D(0,r)$ of $0$ such that $g^{1/d}|_{D'}: D' \to E$ has an analytic inverse $k: E\to D'$. Then define $$ \begin{align*} ϕ = g^{1/d} \circ ϕ'|_{ϕ'\inv(D')}: ϕ'\inv(D') \to E \end{align*} $$ which satisfies $$ \begin{align*} \tilde ϕ \circ f \circ ϕ\inv(z) = \tilde ϕ \circ f \circ ϕ'\inv \circ k(z) = g(k(z)) = (k\inv(k(z)))^d = z^d. \end{align*} $$
The last claim about injectivity follows from $z\mapsto z^d$ not being injective for $d>1$.