I believe that the consensuses is unanimously that physical notes provide a better chance of doing well than digital notes. However, this seems to be for a variety of reasonings.
Reason 1: Electronics are distracting.
According to this Scientific American article:
In one study with law school students, nearly 90% of laptop users engaged in online activities unrelated to coursework for at least five minutes, and roughly 60% were distracted for half the class.
Reason 2: Digital notes are so easy to take, that it's almost an unconscious process.
According to this NPR article:
"When people type their notes, they have this tendency to try to take verbatim notes and write down as much of the lecture as they can," Mueller tells NPR's Rachel Martin. "The students who were taking longhand notes in our studies were forced to be more selective — because you can't write as fast as you can type. And that extra processing of the material that they were doing benefited them."
Counterpoint: Students seem to find digital notes "very helpful".
According to this BBC article:
A 2019 study from Helsinki where medical students were given iPads, found that students found them very helpful [...] But even though the devices were popular, the students’ performance with and without them wasn’t measured, so we don’t know what difference it made to their marks.
Personally, in my education, in the classes I took digital notes on (for me it was a laptop, or a even one of those fancy Rocketbook Smart Reusable Notebooks) I did significantly worse on. Objectively. I failed every class that I solely used a Laptop, and passed every class where I solely used physical notes. Ever since, even in my spare time, I take physical notes as much as I can. Although this may not be the case for other disciplines, I find it imperative that the discipline of learning Mathematics should be done with pen on paper. This is coming from someone, myself, who was born into the world of technology from the start; so I've had a huge bias to use technology in my classes, despite the fact that it may have destroyed my GPA.