Having two monitor ports doesn't necessarily mean you can have two connected.
Did you check with HP support to see if it's possible, and/or if any limitation on monitor resolution/frequency.
My PC- Ryzen 5 5600x, B550 aorus pro ac, Hyper 212 black, 2 x 16gb F4-3600c16dgtzn kit, NM790 2TB, Nitro+RX6900XT, RM850, Win.10 Pro., LC27G55T.