The HDMI socket is electronically terminated. (hope you know what i mean)
When pc boots, electronics will check if there is a cable connected.
If there is, the electronics will not apply the termination.
If there is not, it will.
When you boot without a cable attached, the connection is terminated.
By pushing in the cable, you make a power short circuit.