both have similar amount of carbs, yet sweet potato has much higher sugars, so is it not worst carb wise?

and i know high sugar carbs are bad, but jacket potatos, are not high sugar, so why do some say they are not good for weight loss? avereage sugar is just 3g - compared to about 13/14 g sweet potato?

is a jacket potato-plain a healthy dinner choice?