Analysis definitions and theorems get really complicated with intricate and difficult to follow logical chains, and there are a lot to remember.
These definitions and results don’t mean much on their own without exploring their neighbourhoods by proving relevant things, and I could have learned these definitions and results by just doing proofs. But being absolutely sure I could recite every theorem and definition definitely helped me on the final exam.
I think if you’re learning algorithms (like find the area under a curve) in a calculus course for example, flashcards might have more limited value, as in that case problems are relatively short and you’re better off just running through your set of algorithms a ton of times by doing problems.
I also took a group theory course last semester and I memorized every definition and result from lecture via flashcard, but didn’t practice using them enough by writing proofs. I ended up with like 2 or 3 out of 10 complete proofs and the rest half finished on the final exam because I had the right starting points, but not enough practice using what I knew in unexpected ways. Still passed somehow.