Let $X \in L^1(\Omega, F, P)$ r.r.v., $Y \in L^1(\Omega, F, P)$ r.r.v. and $G \subset F$ be a sub-algebra. (r.r.v. Real Random Variable)
$X = E[X|G] $ in law $\Rightarrow$ $X = E[X|G]$ a.s.
$Y = E[X|Y] $ and $X = E[Y|X]$ $\Rightarrow$ $Y=X$ a.s.
For the first property, I think I should prove that $X$ is $G$-measurable but I could not find a way to use the given information of distribution equality.
For the second property, I have an idea but I would like to be sure of it. We can see that for any set $A$ $X$-measurable and $Y$-measurable, $E[X1_A ] = E[Y1_A]$. Suppose that $A = \{Y>X\}$, we get $E[(Y-X)1_A]=0$ as $A$ is $X$-measurable and $Y$-measurable. As $Y>X$ over $A$ we necessarily have $1_A = 0$. Thus, $Y\leq X$ a.s.. In the same way, $X\leq Y$ a.s..
Thank you in advance