Let $f$ and $g$ be complex-analytic functions on the unit disk $D_1$, and suppose that $$ \sup_{|z|\leq 1} \big||f(z)|-|g(z)|\big| \leq \epsilon. $$ I am curious whether there exists some $\theta\in \mathbb{R}$ such that on the half-disk $$ \sup_{|z|\leq 1/2} |f(z)- e^{i\theta} g(z)| \leq C \epsilon. $$
I can show that this holds when $g=1$ is the constant function. In this case I can use the fact that $|f|+\epsilon -1$ is subharmonic and positive in order to apply Cacciopoli's inequality to get a bound on $\int_{D_{3/4}} \big|\nabla |f|\big|^2$. Then I can use the fact that $\big|\nabla |f|\big| = |f'|$ to show that on $D_{1/2}$, $$ |f'|\leq C\delta. $$ This shows that $f$ is close to a constant, as desired.
This argument does not work when $g$ is not constant because $|f|-|g|+\epsilon$ is not subharmonic. I am curious if there is another way to proceed.
One barrier that makes the argument difficult to find is the example $f(z)=z$ and $g(z)=\overline{z}$. In this case $g$ is not analytic so the hypotheses do not hold, but it does show that the desired bound will not follow from only using bounds such as the maximum principle on $f$ and $g$ in isolation (perhaps one can use that $fg$ is also analytic, for example).