The last time I bought a PC several years ago I had no problems installing Linux on it. I just inserted my Debian iso in the CD-ROM drive and it put Debian on the computer no problem.
However, I have heard that some PC and motherboard manufacturers have been using UEFI firmware that can cause problems for Linux and make it difficult to install, or even brick the system. I have read that there is an open source firmware called Coreboot which can be used to replace UEFI and avoid such problems, but Coreboot only works on AMD machines, so it is not useful in my case, since I plan to get an x86 machine.
What potential problems do I face here with regards to UEFI and how can I avoid them when buying a new machine and installing Debian?