You don't have the choice to not take the class, you just have choice with which professor you would like to take it with. And often you would have to get lucky anyway, since that session may be filled so you'd have to take it with the "harder" teacher anyway.
For example with the popularity of computer science and STEM in general, at my school there were often 2-3 teachers teaching linear algebra in any given semester. And same for popular classes like calculus or introductory physics. Students would often lookup online which teacher was considered easier, but they still had to take the class.