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 7700X, MSI MAG X670E Tomahawk Wifi, Corsair DOMINATOR® TITANIUM RGB 2x16GB DDR5 DRAM 6000MT/s CL30, Sapphire Pulse AMD Radeon RX 7900 XTX, Corsair HX Series™ HX1000, Corsair MP600 PRO NH 4TB