Let $M,N$ be $d$-dimensional Riemannian manifolds. Let $f:M \to N$, and suppose $f$ is continuous, differentiable almost everywhere (a.e ) and that $df$ is an orientation-preserving isometry a.e.
Question: Is it true that there exist a ball $B_{\epsilon}(p) \subseteq M$ such that $f|_{B_{\epsilon}(p)}$ is injective?
This is false. Let $M$ be the interval $(0,1)$. Let $\mu$ be a finite, purely singular measure (i.e., singular with respect to the Lebesgue measure) on $M$ that has no atoms and satisfies $\mu(I)>0$ for every nontrivial subinterval $I\subset (0,1)$ (an example of such $\mu$). Define $$f(x) = x - \mu((0,x))$$ This is a continuous function because $\mu$ is nonatomic. It has $f'=1$ almost everywhere, because a singular measure has zero derivative a.e. (stated here, with a reference to Folland's Real Analysis).
For every interval $I\subset (0,1)$, by virtue of $\mu(I)>0$ and $\mu$ being singular, there exist subintervals $J_1,J_2\subset I$ such that $\mu(J_1)>|J_1|$ and $\mu(J_2) <|J_2|$ where $|\cdot |$ stands for the length of intervals. This can be proved in general, but is easier to see for the specific example of $\mu$ linked above: $I$ contains a dyadic subinterval $D$, and after $n$ dyadic subdivisions of $D$ its leftmost child $D_n^{-}$ and rightmost child $D_n^+$ satisfy $\mu(D_n^+) = p^n\mu(D)$ and $\mu(D_n^-) = (1-p)^n \mu(D)$. Since both have length $|D|/2^n$, this yields the desired subintervals when $n$ is large enough.
Conclusion: $f$ is not monotone on $I$, and therefore is not injective on any subinterval on $M$.
This example can be promoted to higher dimensions by letting $F(x_1,x_2,\dots,x_d) = (f(x_1), x_2,\dots, x_d)$.
To get a positive result, you may want to assume that $f$ is Lipschitz continuous; then $f$ is a Sobolev map, and the theory of quasiregular maps implies that $f$ is discrete and open, hence a local homeomorphism outside of a branch set of topological dimension $\le d-2$. References: