Are bad teeth really genetic??

I don’t drink sugary drinks, I brush every surface of my teeth, floss, and use mouth wash everyday. I haven’t had a cavity in probably 10 years. Last time I saw my dentist he even said my teeth look perfect as always.

Now I’ve heard some people say that their bad teeth are genetic (as in they get tons of cavities) but truly I don’t believe it. I think that they aren’t brushing as well as they think/flossing/using mouthwash/eating to much sugar

What do you guys think 🤔