"to get" in your example would do better. When it's hard for a person to some extent to complete something, and s/he tries, but isn't sure about success, an infinitive is used.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
ElidaIn the first the effort is over (that's why it should be used the infinitive). In the second the effort is not over yet, that's why it should be used the gerund).No. When the effort is expended is not the difference. Read Calpurnia's answer carefully.