At the German university I studied at, long before AI, completing the homework successfully was sometimes just a prerequisite to be able to take the exam, and the exam counted for 100% of your grade. Some classes had homework but purely for your own independent learning, and there was just a weekly presentation by a TA going through it step by step.
"Prerequisite" here is a non sequitur, and it seems like you wanted to use a different word, like "preamble".
If homework was indeed a prerequisite, those who didn't do it wouldn't be allowed to take the exam. That logic is then contradicted by your next sentence.