Three months had passed since she started to avoid me.
Three months had passed since she started avoiding me.
Right now, what I do is to search for the phrase with the most results in Google Books (e.g. she started to avoid me vs she started avoiding me).
Still, I wonder: is there any way to decide whether to use the former or the latter?