Either way you're going to pay something. You're either going to pay 500QR to transfer the visit visa - residency, or you're going to pay for 2 return flights somewhere, costing you more.

I did this last month and the cheapest option for me was to pay the 500QR. You can't shortcut the system.