This experiment perhaps applies most to people who soak their teeth (dentures, or in-jaw teeth that include artificial elements) in coffee:
“Does hot coffee or cold coffee cause more discoloration on resin based composite materials?” Bilge Ersoz, Elif Aybala Oktay, and Numan Aydin, Serpil Karaoglanoglu, European Oral Research, vol. 57, no. 2, 2023, pp.103-107. The authors report:
A total of 48 cylindrical samples, 24 of which were prepared from 2 composite materials… The samples were divided into 3 subgroups as distilled water, hot coffee and cold coffee. During the 7th and 30th days, the samples were immersed in the solutions for 15 min every day. Color measurements were repeated on the 7th and 30th days….
Conclusion: Hot drinks had a more coloring effect…