Coconut oil is predominantly made up of a medium-chain fatty acid called lauric acid. This gives coconut oil a long, straight structure, which is more easily absorbed deep into the hair shaft. Sunflower oil contains primarily linoleic acid, which has a much bulkier design, so it's not as easily absorbed into the hair.