It seems that more research is needed to confirm, but there are some studies and use cases where Xylitol seems to prevent tooth decay. This study has a great review[1] under "Xylitol and other polyols": https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5830181/