Olive oil and coconut oil are both popular "healthy" oils, but their composition is very different. Olive oil is rich in monounsaturated fats, while coconut oil mainly contains saturated fats.
Scientific research more strongly supports olive oil's health benefits, especially regarding cardiovascular health. Evidence for coconut oil is more contradictory.
In the kitchen, they are different: olive oil is the foundation of Mediterranean and European cuisine, coconut oil suits Asian dishes and baked goods. Both have their place, but for daily use olive oil is the better choice.