I am looking for a nice counterexample of the statement: if $\mathbb{E}(X | Y, Z) = f(Y)$ for a measurable function $f$ implies that $X$ is independent of $Z$ given $Y$, i.e. $X \perp Z | Y$.
Any help is appreciated.
Let $Z$ and $T$ be independent uniform on $\{-1, 1\}$, $Y = 0$ and $X = T(Z + 1)$.
Then $\mathbb E(X | Y, Z = 1) = \mathbb E(2T | Y, Z = 1) = 0$ and $\mathbb E(X | Y, Z = -1) = \mathbb E(0 | Y, Z = 1) = 0$, but $P(X = 2 | Z = 1, Y = 0) = \frac{1}{2} \neq 0 = P(X = 2 | Z = -1, Y = 0)$.