that money is fungible is part of the design of money, that complex/subtle consideration is one thing that went into the construction of a monetary system. We could use non-fungible money if it seemed better.
the fungibility of money is similar to the idea that all the steps in a staircase should be the same height.