Yeah, it’s King David shit. But this idea that Joseph Smith did something bad –> Mormonism is illegitimate, but this logic doesn’t apply to Torahnic Judaism or Nicene Christianity, since tons of prophets of God did shitty things and were directly punished for doing so.
These “gotcha” arguments just don’t work unless they work consistently. Catholicism/Orthodoxy ostensibly rests on the legitimacy of Peter, a man who denied Christ three times. See? This kind of shit doesn’t wash just because you’re mad at your Bishop.