Child deduction

When doing my 17 year old daughter's return, I am at the question 'Can another taxpayor claim you as a dependent on their tax return?'

I clicked on the dependent definition and it states:  Age - the person must be age 18 or under at the end of 2022 or a full time student age 23 or under.

When I was doing my tax return, it did not let me claim my daughter as it states under federal deductions/credits child and other dependent tax credits, clicking on learn more:  the tax credit is a tax break that can benefit people with children under the age of 17.

If I go by the dependent definition while doing my daughter's return, I should have been able to claim her but the child deduction/credit says 17 and under, not 18 and under.

So which one is right?