I think I have seen two versions of this structure:
The challenge is [to V]
The challenge is to transform people’s mentality about preventive healthcare, says CEO of Cure.fit.
I take my dreams very seriously and love to rediscover and challenge myself and this time the challenge is to publish my book before February 2019.
The challenge is [gerund]
The blessing part gets me out of my comfort zone, but the challenge is not letting it drain my energy supply.
The challenge here is surviving your friends.
What is the difference between the two structures in terms of meaning? If there are any differences, then when to use to V and when to use gerund?
Would the meaning of these sentences change if we used the other structure? (Like, the challenge here is "to survive your friends" instead of "surviving your friends.")