The effect that has in your digestive system is not the same. Another example is eating fructose extract instead of a whole fruit.
Eating the whole fruit does not spike your blood sugar, unlike eating the equivalent amount of fructose. Also, it does not satiate as much.
Compare the satiety of eating 10 olives to eating a tablespoon of olive oil or two.
It's this reductionistic approach to nutrition where we try to extract these single nutrients that is harmful, because our body has evolved to eat whole foods and not food extracts.
We humans have evolved to eat the whole foods, not highly processed food extracts.
There are thousands of compounds in whole foods that interact with each other and our bodies in a million different ways, and that we are only beginning to comprehend.