The only thing wrong with sugar is overeating it to the point of ruining one's macro proportions and going into caloric surplus. Just saying that "sugar is unhealthy" is not true from a dietary perspective. A better statement would be "too much sugar is unhealthy".