There is absolutely nothing unsportsmanlike about resigning when your position is dead lost.
In fact, the prevailing opinion is exactly the opposite... that it's somewhat unsportsmanlike to pointlessly drag out a game that you are clearly going to lose.
.