I guess the only thing Vitamin D actually does for sure is to keep researchers off the street.
https://www.nejm.org/doi/full/10.1056/NEJMoa2202106

Supplemental Vitamin D and Incident Fractures in Midlife and Older Adults | NEJM
Original Article from The New England Journal of Medicine — Supplemental Vitamin D and Incident Fractures in Midlife and Older Adults
New England Journal of Medicine