This shouldn't be the major factor, of course.
In my opinion, husband or wife is like a friend who lives with you for life. The similarity in your thoughts, preferences and hobbies is far more important.
To be honest, when choosing a wife, I first think about sex. But this feeling cannot last long as your will get bored of having sex after a short time no matter how beautiful your wife is. This can also be applied to the case of choosing a husband.
In contrast, having a wife who behaves in the way you like can make you happy all the time. This is my own experience. I hope this can help you somehow.