https://nutritionfacts.org/2017/02/23/can-you-eat-too-much-f...
The fiber makes all the difference in the world when it comes to metabolism of sugars.
1 was done on diabetics with groups eating more or less fruit, but no mention is made of what the rest of their diet was in relation to sugar/carbs. It mentions no impact to their weight or diabetes, but would their diabetes + weight have improved by cutting carbs, sugar & fruit?
The other study was n=17 so not very solid.
What's more interesting is research where fruit, sugar, and carbs are removed entirely or almost entirely (keto). T2 Diabetes is commonly reversed and weight loss adherence increases.
My rule of thumb is for vegetables to form the bulk of my intake (in terms of volume), with 1-2 cups of fruit per day as "dessert".
Basically, I treat most non-starchy vegetables as "free" - eat as many as you want. It's a mistake to think that fruit/starchy vegetables (pumpkin, potato, etc) are in the same category.
So yes, do avoid fruit juice, soda, smoothies, alcoholic beverages, ice cream, etc; but avoiding whole fruit is probably premature optimisation.
Fruits in terms of calories are essentially sugar, and despite the fiber, more than 1-2 a day will start to impact insulin, fat storage etc. negatively for most people. Especially fructose-heavy fruit.
Non-starchy vegetables are not nearly as sugar or calorie dense, can be eaten in much higher volume with little effect, and as such should be thought of much differently than fruit.
(non-avocado) Fruit falls more in the dessert/candy category IMO.