Deductions & credits

My daughter worked for 6 months in 2019, so she made more than $4400. Her grad school program began in August, just after her surgery.  Since I paid for it (she had no income at this point) , it was if she was my dependent. However, it seems to me that the rules are a bit inflexible, so it looks like I will have to eat the cost?