Solution by OronSH.
We claim the answers are f(x)=0 or f(x)=x for all x, which work.
Denote the assertion by P(x,y). First P(0,y) gives f(f(0))=f(0)f(y), so f is constant, which implies f(x)=0, or f(0)=0.
Next P(x,0) gives f(f(x2))=xf(x). Swapping x,−x implies f odd. Also setting x=1 gives f(f(1))=f(1).
Suppose f(c)=0 for c=0. Taking P(c,y) gives f(f(c2)+cy)=0, so f is constantly zero. Hence assume no c exists.
Take P(1,−f(1)) to get f(−f(1))=−1. By oddness f(f(1))=1, hence with above we have f(1)=1.
Take P(1,y) to get f(y+1)=f(y)+1. Now comparing P(x,y) with P(x,y+1) gives f(f(x2)+xy+x)=f(f(x2)+xy)+f(x). However, for fixed x=0, by varying y we see that f(x2)+xy takes any real value, hence we have f(z+x)=f(z)+f(x) for x=0. Since f(0)=0, we get f additive.
From the original equation we hence have f(f(x2))+f(xy)=xf(x)+f(x)f(y), hence f multiplicative. Then f(x2)=f(x)2≥0, so f is bounded on a nontrivial interval, so f is linear. Since f(1)=1 we get f(x)=x for all x as desired.