If $U$ is a $p\times q$ matrix such that $U^TU = I_{q},$ $S$ is a $p \times p$ symmetric matrix (either positive definite or nonnegative definite), and $D$ is a $q \times q$ diagonal matrix (can assume all diagonal elements are greater than zero), can we find a symmetric $p \times p$ matrix $A$ such that
$$\operatorname{tr}(U^T S U D) = \operatorname{tr}(U^TAU) \text{?}$$
If this were true, then it would allow me to write a conditional distribution arising in a statistical model in a simpler form, corresponding to a known distribution. I think the answer is no, but I'm having a hard time seeing why.
If not, I wonder if we have an additional symmetric matrix $\Omega,$ can we find a symmetric $B$ and $A$ as before such that
$$\operatorname{tr}(U^T S U D + U^T\Omega U) = \operatorname{tr}(BU^TAU) \text{?}$$