There's no difference in meaning, in sentences like the ones you are asking about. But "that" is more emphatic (it's like you are pointing something out), and "it" is not. In order to use "it" you must be sure it's clear what it refers to, otherwise "that" is usually better, since it "points out" what you want to say. This is jus