I prefer the HP5 very slightly over the TriX. That said, it appears that both negatives are not scanned very well. It may be the scanner you used, or your contrast adjustment after scanning may be far too harsh. The shadows are completely blocked, and the highlights blown out as well. It would be better to opt for a flatter contrast curve upfront, and then to adjust carefully in post-processing. As posted, your scans don't provide enough information to do a good comparison. I am quite certain your opinion on which film is capable of what will change if you make good darkroom prints at the correct contrast grade for each negative.