In general, "it" is just neutral, and "this" is used to point out something close to you.
It's a tomato. (General)
This is a tomato. (You might have it in your hands)
It's impossible to understand. (General)
This is impossible to understand. (This thing we are discussing, it sounds more relevant, like it's physically "closer")
