We previously learned that the THEX hash tree specification, which used by some P2P systems, requires that two different hash functions be used: one for the leaf nodes (hashes of input data), and one for the internal/branch nodes (hashes of hashes).
In order to protect against collisions between leaf hashes and internal hashes, different hash constructs are used to hash the leaf nodes and the internal nodes. The same hash algorithm is used as the basis of each construct, but a single '1' byte in network byte order, or 0x01 is prepended to the input of the internal node hashes, and a single '0' byte, or 0x00 is prepended to the input of the leaf node hashes.
By contrast, the merkle tree hashes used by BitTorrent (specified as a v1 extension in BEP 30 and later as v2 in BEP 52) just use unmodified SHA-1 or SHA-256 for all hashes. It's possible that this was a trade-off of security for simplicity, but that wasn't mentioned in the proposal.
What is the benefit of using two different hashes in this scheme?