When evolution molds a genepool it does so with inbuilt assumptions, one the assumptions is exposure to some level of sunlight. Deviating from these assumptions would result in undefined behavior (in the CS sense) for individuals.
If an individual cannot or will not expose themselves to sunlight, taking D3 is probably the best option they have.