It would be nice if, at the start of the application process, companies could ask you if you would like to agree not to sue them in exchange for open, honest feedback, e.g. notes from your interviewers.
Sometimes its pretty clear if you are not a good match, but sometimes its really not, and it seems like it would be best for both parties if certain kind of feedback could be provided, e.g. you were close, please consider applying in a year or two with some more experience, or we have decided not to hire anybody due to a later hiring freeze, but otherwise we would hire you - or, you are a unlikely to ever work in this industry, don't waste anybody's time with further applications (maybe some suggestions for better fits).
In general, more information leads to more efficient markets benefits all participants.