There was also an ancillary study to VITAL that focused on looking at depression & vitamin D3. Here's some good commentary on that study:
https://peterattiamd.com/randomized-controlled-trials-when-t...
tl;dr Due to the study's flawed design, you can't claim there's no connection between depression and oral vitamin D3 supplementation.