It would only be true that the result would be identical if the wall were such an ideal immoveable object that it absorbed no energy from the car.
In that case, the two car crash could be said to be equal, because each car would absorb the same amount of energy, and this would be the same as a single car absorbing all its own inertia.
If the wall is not ideal, then there is a difference, as the wall absorbs some of the car's inertia.
To help decide whether the energy matters or not, have someone gently lay the palm of their hand along the side of your face for a moment.
Then have them put the same hand on the same part of your face, this time including a high amount of momentum.