I'm looking for an example of a simply connected open set in $\mathbb{C}$ and a holomorphic function $f \colon \Omega \to \mathbb{C}$ such that $$\textrm{Re}(f'(z)) > 0$$ for all $z \in \Omega$ but $f$ is not injective.
One can show that under these conditions, $f$ must be injective if $\Omega$ is convex. I'm not sure how to come up with a counterexample for a nonconvex set though. It seems for many elementary functions such as $z^2, e^z$ that the set where $\textrm{Re}(f'(z)) > 0$ has convex connected components.