Speciation: more likely through a genetic or through a learned habitat preference?

Speciation: more likely through a genetic or through a learned habitat preference?