Basically this:
lol
You still get all the accumulated XP and found items if you fail a quest or escape. There's really no downside to it except that you have to come back another day.
Choices made while replaying a scene do not influence your main playthrough in any way.