I inherited stock in 7/24 and donated it 12/24. ChatGPT says all inherited stock is treated as a long-term, so I should be able to count the 12/24 value as my deduction?

Normally stock only held for 6 months would be treated as short-term holding and you could only deduct cost-basis as charitable deduction. But is it true that since it is inherited stock, I should be able to deduct the market value in Dec 2024?