Accumulating tech debt in the tests will come back to haunt you in the long run when tests become harder to maintain or less reliable as the project evolves.
You just described the need to rewrite or abstracting out a new contract for a codebase because the fundamentals of a contract were broken. They are completely different objects.
This problem existed before AI and great when you caught it.