529/Amer Opp Credit: Tuition: $6000 paid by grandparents 529 Room & Board: $6000 paid by parents 529 Child not a dependent. Can gparents restore 529 and child take AOC?

TT is saying take the AOC and child pays tax on the excess 529 distribution earnings. Is this best/only way to handle this?