So.... This whole subplot was for nothing, since the girl is still rejecting him in favor of the martial palace just like she'd told him before and he already knew.
Really all that was achieved is that the MC has another low tier "rival" male character to curb stomp, and he was essentially raped. So hurray! Very legal, very cool.