Let $X,Y,Z$ be real valued random variables such that $(X,Z)=(Y,Z)$ in law. Let $g$ be a bounded Borel function and define $h_1(X)=\mathbb{E}(g(Z)|X),h_2(Y)=\mathbb{E}(g(Z)|Y)$. Prove that $h_1(Y)=h_2(Y)$ a.s.
I'm able to prove that if I also suppose that the random variables are jointly absolutely continuous:
$$h_1(x)=\int g(z)f_{(Z|X)}(z,x)dz=\int g(z)\frac{f_{(Z,X)}(z,x)}{\int f_{(Z,X)}(z',x)dz'}dz\\=\int g(z)\frac{f_{(Z,Y)}(z,x)}{\int f_{(Z,Y)}(z',x)dz'}dz=h_2(x)$$
Can someone help me?