Proof (Rao-Blackwell)

$\hat θ$ is an estimator

Note that $$ \begin{align*} \hat θ = \expect_θ(\tilde θ \mid T) = \int_{\mathcal{X}} \tilde θ(x)\, p_θ(x\mid T) \d x \end{align*} $$ where $p_θ(x\mid T)$ does not depend on $θ$ by sufficiency of $T$. Thus $\hat θ$ does not depend on $θ$.

$\op{MSE}(\hat θ) \leq \op{MSE}(\tilde θ)$

We will use the bias-variance decomposition $$ \begin{align*} \op{MSE}(\hat θ) = \op{bias}(\hat θ)^2 + \var(\hat θ). \end{align*} $$

By the law of total expectation, $$ \begin{align*} \expect_θ(\hat θ) = \expect_θ\bigl(\expect_θ(\tilde θ \mid T)\bigr) = \expect_θ(\tilde θ), \end{align*} $$ so $\op{bias}(\hat θ) = \op{bias}(\tilde θ)$.

Now by the law of total variance, $$ \begin{align*} \var(\tilde θ) = \var(\underbrace{\expect_θ(\tilde θ\mid T)}_{\hat θ}) + \expect_θ(\var(\tilde θ\mid T)) \geq \var(\hat θ), \end{align*} $$ so $\mathrm{MSE}(\tilde θ) \geq \mathrm{MSE}(\hat θ)$. Equality occurs iff $\expect_θ(\var(\tilde θ \mid T)) = 0$, which means $\var(\tilde θ\mid T) = 0$ with probability 1. Hence $\tilde θ$ is a function of $T$ with probability 1.