How does the sentence end?

Logan ate more sugary candy than Samuel and rarely brushed their teeth, but
Samuel still had more cavities.