MY GRANDDAUGHTER has a 1998 Hyundai Excel and it's difficult to change gear. A mechanic told her it could not be repaired. Nor could the gearbox be replaced. I find this hard to believe.
Find another mechanic. The X3 Excel is a tough car that is generally reliable. I have seen models that have done more than 200,000km without any trouble. The gearboxes are reliable and parts are readily available to rebuild them. And second-hand units are easy to find if it needs replacing. But before you replace the gearbox check the clutch. I reckon a worn-out clutch is probably causing your problem.
Disclaimer: You acknowledge and agree that all answers are provided as a general guide only and should
not be relied upon as bespoke advice. Carsguide is not liable for the accuracy of any information
provided in the answers.