It was a closed-book exam. The professor shouldn’t have to hold students’ hands for them to act with integrity, they are all adults.
In this particular class, the professor made the final exam in-person, and didn’t count the take-home midterm because the score distribution wasn’t consistent between the two exams. I think that’s a reasonable approach, but it’s kind of sad that it was necessary