Let's consider a theory with gravity and matter field(s) $\Phi$. The action of this theory is the following: \begin{equation} S[g,\Phi] = S_g[g]+S_m[g,\Phi] = \frac{1}{16\pi G}\int_Md^4x\sqrt{-g}R+\int_Md^4x\sqrt{-g}\mathcal{L}_m[x,\Phi]. \end{equation} The fact the the Einstein-Hilbert action $S_g[g]$ is invariant under diffeomorphisms implies the conservation of the Einstein tensor $G_{\mu\nu}$: \begin{equation} \delta_\xi S_g[g]=0\Longrightarrow \nabla_\mu G^{\mu\nu}=0. \end{equation} The fact that the matter action $S_m[g,\Phi]$ is invariant under diffeomorphism implies the conservation of the energy-momentum tensor $T^{\mu\nu}$: \begin{equation} \delta_\xi S_m[g,\Phi]=0\Longrightarrow \nabla_\mu T^{\mu\nu}=0. \end{equation} But in the end, isn't it the total action $S[g,\Phi]$ that is supposed to be invariant under diffeomorphisms? So could we imagine some kind of transformations where $S_g[g]$ and $S_m[g,\Phi]$ are not invariant but the sum the two is? So the transformation of the two terms would cancel each other.
Is this precisely what Einstein's equations are saying?