The problem I'm working on says this: Suppose $f, g$ are two analytic functions on an open set containing $\overline{D}$, where $D = \{ z \in \mathbb{C} : |z| < 1 \}$ is the open disc in $\mathbb{C}$ and $\overline{D}$ is its closure. Suppose $|f(z)| = |g(z)|$ for $z \in \partial D$, and neither $f$ nor $g$ has a zero in $D$. Show that $f = \alpha g$ for some constant coefficient $\alpha \in \partial D$.
What I want to do here is take $h = \frac{f}{g}$ and apply the strong part of Schwarz's Lemma to $h$. If I can do that, then I'm done. The challenge I have is that while I see $h$ is well-defined on $D$, because neither $f$ nor $g$ vanish on $D$, I don't know how to show there's an analytic continuation to (an open neighborhood of) $\overline{D}$. If I do that, then I think I can use a Maximum Modulus argument to say that $h$ takes $D$ to $D$ (i.e. $|h(z)| < 1$ for $z \in D$), putting me in Schwarz's Lemma territory. But as said, I don't see how to get the analytic continuation to $\partial D$, i.e. I don't know how to guarantee there won't be singularities there. I know that a singularity would correspond to a point where $h$ is locally unbounded, and that can't happen along the disk, but I don't know how to be sure it won't be unbounded at nearby points off the disk.
I feel like I see my goal, just don't know how to cover the step I need. I would appreciate any help with this problem.
Thanks!
EDIT: @semiclassical pointed out that I could be clearer about my goal with $h$. I want to show that $h$ is constant of magnitude $1$.