These two popular types of sugar are similar but their differences mean you shouldn't always swap one for the other.