What program has control of an x86 computer when the user is able to choose which operating system to boot?

At this stage, the BIOS still has primary control of the computer. It has loaded a program known as a "bootloader", which loads the operating system kernel (or another bootloader) and hands control over to it.