Prey preference in a kleptoplastic dinoflagellate is linked to photosynthetic performance.