I am asked to prove the following: Let $\Omega\subseteq\mathbb C$ a convex open subset and let $f$ be a holomorphic function in $\Omega$ such that $|f'(z)-1|<1$ for all $z\in\Omega$. Then $f$ is injective.
I proved this result, but then, I am asked to give a counterexample of a holomorphic $f$ in a non-convex connected open subset $\Omega\subseteq\mathbb C$ such that $|f'(z)-1|<1$ for all $z\in\Omega$ but $f$ is not injective.
I tried to think of $f$ in a way that involves the logarithm function, since the discontinuity of the argument may result in $f$ not being injective. I thought about the function $f(z)=\log(z)+z$, fixing the argument in $[-\pi,\pi]$. We have $$ |f'(z)-1|=|1/z+1-1|=|1/z|<1\iff |z|>1.$$
So we may choose $\Omega=\{z\in\mathbb C\,\colon |z|>1\}$. This set is open, not convex and connected. The problem is I don't know how to check that $f$ is not injective in $\Omega$; in other words, how to determine the points $z_1,z_2\in\Omega$ such that $f(z_1)=f(z_2)$. I would be very glad if someone can help me with that. Thank you.