I'd say "that" is more demonstrative than "it." The speaker wishes to call attention to some specific thing previously mentioned. "That is the last time you're going to get away with it." "She's very friendly. I like that."
"It," on the other hand, may be only the "dummy it," to be explained later in the sentence: "It's wonderful having you here for the holidays."