I sprained my ankle ____ I was playing basketball.
I went through an earlier post of when vs while on SE. The difference in meaning of those sentences is pretty clear but what difference does using the two words makes in the above sentence? Which one is more appropriate? What I think is more appropriate is while because playing tells that the action was going on when his angle was sprained. Am I correct?