Let's say I have two functions $f$ and $g$, both analytic on the same domain (open and connected set) $D$, and suppose also I was able to prove that $f = 0$ on the entire domain.
Question. Is it legitimate to then claim that $$ \frac{f(z)}{g(z)}\equiv 0 $$ identically on that domain? In particular, $g(z)$ may assume a zero value in that domain, but since $f(z)$ will be zero as well the fraction is well defined in any case?
I suppose this question is not strictly about complex analytic functions, nevertheless it arose in a problem where analytic functions are involved.
Strictly speaking, it is not legitimate because $f/g$ would be undetermined, regardless of the value of $f$, in the zeroes of $g$. Particularly, if you cannot prove that $g$ is not identically zero in the domain, then you cannot define $f/g$ anywhere.
However, if $g\not\equiv0$, and $g$ is analytic/holomorphic, then, the zeros of $g$ are isolated singularities of $f/g$ which can be removed. Theorem 3.1 from Lang's state
Continuity requires $f/g$ to be defined as zero in those points as well, so in a sense your claim is legitimate.
Also related as mentioned in the comments: if $g$ is not identically zero, then $f/g$ is meromorphic. From Wikipedia,
Meromorphic functions have isolated singularities, and in your example $f/g$ is bounded.