Aaaaaah
From my experience i like to gain something when i lose. Find something i need to work on. More than likely do i hunt for something to work on when i start winning. If i get blown out in a situation .... that is a serious problem. I hope it is due to being distracted when online or i am tired. If it is not that i have to shut everything down!
If your losing by material and position to a much higher rated player ....and have other games where they are close. Why not resign. Focus on winning them with more time to think your moves out instead of looking at a game you are not going to win and will get nothing from studying but a headache. More you may dout your abilities
Resign when:
1) You believe your position is lost,
2) You believe your opponent knows it's lost and,
3) You believe your opponent can convert the win without difficulty.
I think most players do this even if they use different words to describe it. I also think if you continue to play after these conditions are met that you're being stubborn.
Anyway, when you're new then don't resign because it's likely anything can still happen i.e. you likely don't believe #3.