Which preposition to use with detrimental

to Occurrences 101%

Slang is detrimental to the formation of good intellectual habits.

than Occurrences 1%

See, my dear fellow, you really must get this into your head, that in order to succeed in our profession, evangelical virtues are more detrimental than useful, and that there are two things indispensable: first to have a good outside show, to stir yourself and to know how to intrigue to the utmost.

Which preposition to use with  detrimental