makes you happy when you goto sleep with a feeling of done something good, intelligent work not always makes you happy.
If you meant 'important' as 'success', both are essential.
Because there is no point in trying doing something hard with a stupid idea.