I am having trouble using gerund/infinitive forms when functioning as subject of a sentence. For instance, which one of these two sentences is correct?
Eating ice cream on a windy day can be a messy experience if you have long, untamed hair.
To eat ice cream on a windy day can be a messy experience if you have long, untamed hair.
If both sentences are correct, are these two kind of constructions always interchangeable? Would that only be up to one's stylistic choices?
I am looking for some explanations online but I cannot find anything about them being interchangeable. For instance, on this website called Grammar Bites!, it is said that both constructions can function as subjects but nothing else.
This is my first post so I hope I did not do anything wrong. Thanks!