We have three options:
It is easier to buy soft drinks and processed foods than buy fruits and vegetables in this country.
It is easier to buy soft drinks and processed foods than to buy fruits and vegetables in this country.
It is easier to buy soft drinks and processed foods than ___ fruits and vegetables in this country.
All three sentences are grammatical and mean the same thing. (1) is a bit unnatural sounding because of the bare infinitive, but it is not wrong. I would encourage choosing between (2) and (3) in most cases.
(2) is often used if the "soft drinks and processed foods" part becomes too long, like this:
It is easier to buy soft drinks, processed foods, and other less nutritional options than to buy fruits and vegetables in this country.
In this case, the comma-separated list makes it harder for the reader to link the initial "to buy" with the subsequent "fruits and vegetables," so we repeat the infinitive to make the sentence clearer. In this construction, you will sometimes also see a comma before "than," but I'm not certain it is needed.
On the other hand, (3) is less wordy. Use it when the sentence is short enough that a reader doesn't need the "extra help" of a repeated infinitive.
As you say, we can also recast the sentence, which may be easier to read as well. This is useful if the sentence becomes so lengthy and convoluted that the parallel structure can no longer be discerned. But you can almost always recast any sentence, so it's important to focus on doing this in cases where the original is genuinely hard to understand.