Nuts & cheese contain protein. And whole pineapple chunks is not "just sugar", I thought it was pretty well established that whole fruit is not comparable to soda. Although I guess in fairness depending on the can you buy, some have a fair amount of added sugar in the form of juices & syrups.
I buy bags of frozen fruit pieces. One advantage is that you get just the fruit with no juice or syrup, and I think frozen fruits and vegetables taste better than their canned counterparts anyway.
canned fruit can have a lot of added sugar though
I couldn't say what the numbers are, although the fruit cans say "is in its own juice" and I think cottage cheese has protien, for what that is worth. But I enjoy it, which is important too.
Sugar from fruit is a world of difference from sugar in processed foods.