Suppose I have a commutative ring $R$. Given an element $(x_1,x_2)\in R^2$ there exists a homomorphism $\mathbb{Z} \to R\otimes R$ taking $1$ to $x_1\otimes x_2$, so there exists a map $f:S^0 \to HR \wedge HR$ giving this on $\pi_0$. There is also a map $g:S^0 \to H\mathbb{Z}$ which is an isomorphism on $\pi_0$. Does there exist a map $H\mathbb{Z} \to HR \wedge HR$ that makes this commute, i.e. that takes $1$ to $x_1\otimes x_2$ after applying $\pi_0$?
I'm guessing that in general the answer is "no," but that there might be some kind of obstruction theory that will tell me that sometimes it is "yes," but I'm not sure what it is.