It shouldn't matter as long as the GPU and the display both have the same ports. If you wanted display X and it had HDMI, then you would check if the GPU also had HDMI.
Most if not all modern graphics cards, like yours, have both HDMI and Display Port. Since you have an AMD GPU, you should look for a display with Freesync. It matches the display's refresh rate to the game's FPS and generally results in smoother feeling gameplay. Here is some information on it.
AMD FreeSync™ Technology.
Some displays don't support both Freesync and HDR at the same time. You should do some research on which displays and ports support it at the same time.
Ryzen 7 7800X3D, ASUS ROG STRIX X670E-F GAMING WIF, G.SKILL TRIDENT Z NEO 2x16GB DDR5 DRAM 6000MT/s CL30, AMD Radeon RX 7900 XTX, LIAN LI EDGE 1300, Corsair MP600 PRO NH 4TB