Direct evidence of electron-hole compensation for extreme magnetoresistance in topologically trivial YBi