wp_insert_comment()
is low level function, it only saves passed data without concern for what it contains.
If you are looking to replicate sanitizing WP does on comment data (totally good idea 🙂 you are probably looking for higher level wp_new_comment()
.