I'm struggling with trying to find a formula for $E[f(X, Y)|\mathscr{F}]$ where $X$ and $Y$ are like in the title, $f$ is borel, and $E|f(X, Y)|<\infty$. I know that there exists a formula for $E[f(X, Y)|Y]$ and it's equal to $g(Y)$ where $g(y) = E[f(X, y)]$. Does it hold that $E[f(X, Y)|\mathscr{F}] = g(Y)$ as well?
My problem is that the proof of the formula relies on the fact that if $B\in\sigma(Y)$ then $B = A^{-1}(Y)$ where $A$ is a Borel set. I can't use that approach here.