Greetings,
Welcome to the forum.
I am not a HP employee.
Nice troubleshooting!
It's one or the other if you disconnected all unnecessary internal hardware and are only connecting a monitor to the PC.
Also talking about disconnecting all SATA drives, front USB which includes the card reader.
Probably the MB. CPU failure is possible but MB failure is more likely.
Regards