Is the 529 contribution a gift to owner or beneficiary

As a grandparent if I contribute to a 529 where the owner is a parent and the beneficiary is a grandchild of $17k in 2023, is this considered a gift to the beneficiary? Can I give a gift outside of the 529 to the parent who is the owner of the 529.