Magnetoresistance in LuBi and YBi semimetals due to nearly perfect carrier compensation