@Vsotvep had, I think, a very good specific suggestion for an algorithm to clean up most discrepancies. I’d love to see someone try to implement that as a replacement for whatever we have now!
But I don’t know how you’d use AI to determine that people are playing useless moves in a lost game. How would you avoid cases like this?