In my case, we submitted lots of prior art (some over 100 years old) to the court, and of course they shared this with the plaintiffs. I was certain we should be in the clear. However, in the time between receiving those documents and the actual court date, the plaintiffs submitted our list of prior art to the patent office as some sort of addendum. The patent office re-rubber stamped the new stack of paper, and the judge disregarded it during the trial. We lost. I doubt the patent office bothered to read, much less understand, any of it.
I feel very strongly that their patent was not novel, and since I wrote the algorithm which got us sued from scratch as a new college grad with only a bachelors degree, I doubt it was non-obvious to one skilled in the art. Maybe we could've won with better lawyers, but as a small startup, we didn't have that kind of money.