Someone says, 'I don't think it really matters whether we use“to V” or “to V-ing”. I think it may just be a matter of personal preference. I did a Google search to check the usage frequency of the two forms, using the verb “win” as the example, and I found some interesting results. When using the second person (set your mind), I found that “set your mind to win” was used in 602 pages, but “set your mind to winning” was never used. However, when I changed the sentence to the third person (set his mind to), I found the opposite. “Set his mind to win” was only used in 6 pages, but “set his mind to winning” was used in 55 pages! Strange indeed.'

Do you agree that it is just a matter of personal preference?
In certain instances, doing a Google search helps a lot to determine which sentences or phrases are most commonly used. But in this case, I don't think it's such an accurate indicator. A lot depend on the phrase you select.

Simply put, you can compare:

-I like to read
-I like reading

-She likes to swim
-She likes swimming

and be assured that they mean the same.
Hello Teo

I don't like to offend you. But I think both of "set one's mind to do" and "set one's mind to/on doing" belong to obsolete or very rare usage. I know they mean something like "be determined to do". But please compare the frequencies of their uses on Google.
"set(s) one's mind to learn" : 220 pages
"set(s) one's mind to learning": 383 pages
"am/is/are/was/were determined to learn" : 34,655 pages
Do you think it can be fruitful to discuss much about the collocations seemingly very rarely used?

Site Hint: Check out our list of pronunciation videos.
I set my mind to __ hard. (A) study (B) studying

Which do you think is correct?
 paco2004's reply was promoted to an answer.
Students: We have free audio pronunciation exercises.

B is standard.
I set my mind to studying hard.

I always use the -ing form in this construction. I had no idea anyone ever used the infinitive.

"set one's mind" was commonly used in the household where I grew up, although usually with just "it" as the prepositional object: You just have to set your mind to it!