What's the best: UEFI vs. Legacy? (security-wise)

My Qubes version is 4.0.4, and I had to comment out those listed in BOOTX64.cfg before installation because it was freezing.

I then followed the following in the faq in order to get my SSD to read as a bootable device under my BIOS: Boot device not recognized after installing