It's true that new compilers often try to produce the same effect with more efficient generated code, just as web sites might strive to produce the same visual output more quickly.
This is wrong because you are viewing the task of a compiler in terms of the result of the compiled program. A compiler is simply a translator from one language to another. The result of the program is the result of an interpreter running the code, not the compiler. Deviation from correct output in the compiled code is not only not allowed, it is deemed a bug in that code.
The unique part of different compilers is not the output of the compiled code they produce but the compiled code itself. All compilers should produce code that produces the same result if they are taking in the same input, by definition.