529 distribution CA

I'm about to get reimbursed from a 529 for r&b. I know that we can only do that up to what would be the cost if kiddo was living on campus. Should that reimbursement go to kiddo, whom I'm claiming as a dependent, or to kiddo or does it matter as it should all be a qualified educational expense?