Getting nutrients from whole foods is generally superior, for absorption and balance and avoiding overdosing, than getting it from supplements, whether taken directly or via enrichment.
That said, getting a nutrient any way is better than running a deficiency. For most of agricultural human history, in most societies, most of the population was nutritionally sufficient [1]. That changed with enrichment. It’s healthier to eat whole over enriched food; it’s better to have enriched food versus a vitamin decency.
It’s ahistoric to claim we’re unhealthier today than we’ve been over most of human history. But we can do better. In that way, Roman pipes brought clean water to its populations in a way that made them healthier than people had been in cities to date. But it also gave them lead poisoning, which while better than cholera, is worse than no lead.