I would like to show that for any random variable $X$ and $Z$ such that $X$ and $Z$ are independent and for any measurable functions $f$ and $g$,
$$ \mathbb E \left[ f(g(X),Z) | g(X) \right] = \mathbb E \left[ f(g(X),Z) | X \right]. $$
How could I proceed?
Thank you for your help!
EDIT: The $X, Z, g(X), f(g(X),Z)$ are considered square integrable. $f$ and $g$ are continuous.