Sunlight has many pathways in the body, and increased vitamin D levels are just one of those pathways. Swallowing one element of a many-element pathway cannot simulate the human synthesis of vitamin D! This should be obvious! Your car might not run because of bad needle bearings, but the solution is not to add them to the gas tank! First, you must always understand.
Sunlight / vitamin D is an especially aggravating issue because we have increasing amounts of research on how sun exposure improves general health. Sleep quality and regularity, mood, cancer incidence (as the article notes), eyesight, skin conditions, overall mortality, virtually every part of human health is improved by going outside. And when I say "improved" I mean improved to such a degree that it would blow 95% of prescribed drugs out of the water. See, for example, the Melanoma in Southern Sweden study where the highest sun exposure cohort had _half_ the all-cause mortality of the lowest group. Unfortunately the Western medical establishment is thoroughly captured by industry and you can't sell a pill that makes you go outside.