That’s mostly true, but the heat generated by calculations which where thrown away still impacts the CPU’s thermal budget and the devices battery life. This coupled with branch prediction overhead makes failed branch predictions far worse than simply stalling would be without them.
However, even very dumb branch prediction tends to be well worth it for the vast majority of code.
However, even very dumb branch prediction tends to be well worth it for the vast majority of code.