Normally I hate the whole "you do x so you're going to be a bad doctor" nonsense that goes on here, but in this instance I agree somewhat.
It points to a concerning pattern of behavior and the risk to the patient isn't just that someone's knowledge base will be lacking.
I spent two years as a patient of a resident at a teaching hospital. Something seemed a bit off, guy was incredibly anxious and insecure despite me being polite, low maint., joking a bit, trying to help him relax, etc since I'm planning on going down this career path also. After he flat out lied to me twice, I decided to switch doctors and got my records. Found out that he was repeatedly documenting exams he didn't do and questions he never asked. He was so anxious that apparently he thought if the attending asked if the resident had asked me a question about something or had done a certain exam, he just pretended that he did and made something up because he was too insecure to say he forgot/didn't think it was important. It created an absolute nightmare for me to deal with.
He was so focussed on convincing people of his knowledge base and performance that he was willing to lie/cheat to be evaluated well. Same as someone who cheats on coursework. I'm willing to bet that someone like him who cheats and takes shortcuts in school is more likely (not always but I'd bet on statistical sig) to "cheat" with patients with things like false documentation, fudging billing records, lying about/covering up errors, etc.