I generally question Mendelian randomization (MR) results by default as well, but I do think there is good MR research out there. Some positive things to look for (IMO): attempts to quantify (or at least discuss qualitatively) horizontal pleiotropy (e.g. by looking at known human protein-protein interactions), attempts to mitigate the effects of horizontal pleiotropy through methodology (rare, not sure if I've actually seen this in papers with more exciting results, but an active research area), and attempts to quantify causal loops / elucidate the broader causal structure.
There's also a fair bit of general research on the reliability of MR results [1, 2] which may be of interest to readers.
Additionally, there is a false intuition among people who regularly conduct association analyses but not MR studies that horizontal pleiotropy can only serve to increase the causal effect size. However, this is not true (mentioned in [2] but better elucidated mathematically in the instrumental variables literature): negative results (such as the one posted) can be induced by horizontal pleiotropy as well (of course, not saying that it was).
[1] doi:10.1038/s41588-018-0099-7
[2] doi:10.1093/hmg/ddy163
A popular motif (and perhaps the most illustrative example) is to restrict the instrument to be genotype variants within a specific gene, and use its protein product (for example, its serum concentration) as the exposure [1]. In this way, horizontal pleiotropy is significantly mitigated.
This is sort of a natural extension (on a statistical methodological level, really a simplification) of a popular technique where a drug which has a known protein target is used in a "factorial MR" scheme [2]. Unfortunately, I'm less familiar with the literature here because it's very domain-specific.
[1] doi:10.2337/dc18-2444
[2] doi:10.1016/j.jacc.2015.02.020
Edit: removed one of the references because it's a somewhat convoluted example, and on a deeper read, wasn't actually the paper I was thinking of.
I wonder if the retrospective studies that correlate low vitamin D levels to worse COVID outcomes are actually finding that people who spend more time indoors are more likely to have a higher viral load due to sharing more air with contagious people in poorly ventilated areas.
But generally being outdoors, on a grey winters day in the northern hemisphere, with just your face exposed, and having darker skin, for an hour, is not going to get you enough D.
30 min of sun exposure will give you the equivalent of 10,000 to 20,000 IU.
If you moderate your sun exposure and are responsible, there is no reason you can't use the sun to your advantage.
If you don't you're likely to become vitamin d deficient listening to that person.
For an acute infection I think it is a blunt instrument at best, as there is going to be a lot more noise in the inferred target variable.
1) Vitamin D levles is strongly correlated with physical activity levels, so a mere observational study can be strongly confounded - which may be part of why this study finds disagrees with some the merely correlational studies in the past.
2) This study is a Mendelian Randomization study, where since you haven't randomized individuals' Vitamin D levels, you instead assume that their genetics are random (you either get a variant from your parent or not, by chance) and that genetics may cause Vitamin D levels. So if those genetic variants are correlated with COVID outcomes, then we say it's because of Vitamin D. Notice the problem? You need to assume that the genetics do not affect anything else except via Vitamin D. Now I think that's where this is very tricky: they're identified variants that predispose someone to high/low Vitamin D via a genome-wide study, i.e. just check everything for correlation with Vitamin D. The obvious problem is that correlation isn't causation so some or most or all of those variants will influence other factors too, and it becomes harder to say that Vitamin D is the reason COVID was severe or not. Ideally you have instead hand-picked variants with obvious known mechanisms as to how they affect Vitamin D metabolism, say. In lieu of that, you have to do various tests that try to spot how problematic this problem is. (Look for "pleiotropy" in the paper. Back-causation is the other problem you need to consider generally, but it's not really a concern here.)
Personally I don't trust those tests further than I can throw them as they make some questionable assumptions. The main method this paper uses is MR-Egger, which (IIRC) assumes that the non-Vitamin D ways the variants affect the outcome are inconsistent across different variants. Like, this variant might act on Vitamin D and immune system but this other one acts on Vitamin D and your cardiac system so we don't expect the non-Vitamin D portion to be consistent. That seems highly questionable, even I would expect the typical state to not be that, where variants that affect Vitamin D are likely in pathways that also affect specific, consistent other attributes. The authors are aware of these difficulties. I can't assess whether they've succeeded in addressing them or not, but I believe the problem is extremely difficult and they have an up-hill battle.