> Ocaml has a GC
Yes, but the language is immutable and eager by default. That makes circular references a chore.
> and supports class based inheritance
Yes, but hardly anybody uses that part of the language. We tend to stick with modules and variations over them.