Suppose I have two Lebesgue measurable functions $f,g : [0,1] \to \mathbb R_+$ with the following property: $$ \int_0^x f(y) dy = \int_0^x g(y) dy$$ for a.e. $x \in [0,1]$. Can I conclude that $f=g$ a.e. on $[0,1]$ from here?
More generally, if I have two random variables $x,y$ such that $\mathbb E[ x \vert x \le a] = \mathbb E[y \vert y \le a]$ for a.e. $a \in \mathbb R$, can we say that $x =y$ a.s.?