I am using the term "whodunnit" kind of loosely. But there is a scene towards the end of the movie that is reminiscent of either of those films, where all the "suspects" end up in a room and one by one, the evidence that exonerates each of them is presented until they get to the guilty party.