Agree, a combination of the challenge system and "umpires call" is the only way forward.
Umpires call used for offsides deemed to be marginal, with an agreed margin of error to account for the technology
Also give both captains 1 challenge per half or something like that, to refer non-offside...