Flexible mate choice when mates are rare and time is short