Need advice. Is it a relapse?

Is M with the partner after the sex a relapse ? Given the fact that I was aroused to her and thinking of her only and didn’t think of P in that moment.

No its not since you are with a real person and not with a figment of imagination