I agree that - in many cases - there is more than one way to accomplish a given task.
However, I do think that - while in a class - it does make it easier for all the participants if they are all - more or less - going in the same direction - and reading from the same book - and the same edition - and the same page.
It might be appropriate for the instructor to say something like - 'I know there are other ways to do such and such - but for this class - let's do it this way."