The OMEN 27" display supports both HDMI and DisplayPort inputs and should work fine with the M2 Mac mini.
see > Connect a display to Mac mini - Apple Support
However you will most likely need to replace the factory shipped cable with a short high speed cable.
If you go HDMI to HDMI, then get a short 8K high speed HDMI cable.
for example > https://www.amazon.com/dp/B08NX5CZTF/ref=sspa_dk_detail_0?
If you go USB-C to DisplayPort, then get a short 8K USB-C to DisplayPort cable.
for example > https://www.amazon.com/dp/B08B3SB5VC/ref=sspa_dk_detail_1?