Likely a internal card is going to be the best option. It all depends on how hard it is to disassemble the laptop to get to the card. Some you remove 1 panel on the back and replace it other you must do massive dis assembly to get to the card. There likely are youtube videos if the laptop is fairly common.
As long as you find a wifi6 card the same physical form factor it will function. HP has stopped being idiots...well at least on consumer grade machines...and no long tries to force you to buy only their cards with bios hardware whitelists.
Performance the internal cards tend to work better. They use the larger antenna in the laptop and are not constrained by the USB. You would need to use usb3 ports to get full speed...