Raspberry Pi fails to boot when connected to TV via HDMI

With the help of good people here, my troubles with HDMI have been solved.

As others suggest here, check first that your Pi4 has a good power supply and high qualityHDMI to micro HDMI cable adapter. The latest was the problem.