There have been three RCT I know of. Another calcifediol study showed a big impact. An oral supplement study on hospitalized patients did not. Presumably because oral supplements take a while to change levels whereas calcifediol does not.
But in the study where it does not work, it's an oral supplement given after hospitalization. Oral vitamin D takes a while to elevate blood levels so the fact that such regimen doesn't work, doesn't prove much.
I guess the real question is whether you'll wish you had been taking vitamin D if you get Covid-19. While this could end up being placebo, there's some compelling evidence that you have everything to gain and nothing to lose.
There are enough "long hauler" cases where you still should, though.