For this integer-coefficient pattern, both terms must be cubes of integer-coefficient terms. The number 12 is not an integer cube: 23=8 and 33=27.
The other expressions fit: x3+1=x3+13, 8x3−27=(2x)3−33, and 64−x3=43−x3. The restriction matters because 12 is the cube of the irrational number 312.
x3+12=x3+(312)3
This is a sum of cubes using an irrational constant, so it is outside the integer-coefficient pattern asked for.