On the Optimality of the Hamming Metric for Decoding Block Codes over Binary Additive Noise Channels