Since you noticed it specifically on horizontal lines like PD outlines and engine readouts, the monitor is likely struggling with the pixel response time when dark textures move against a slightly lighter background.
Instead of just changing the refresh rate in Windows, you should look into the monitor's own internal settings. Try going into the monitor OSD menu and finding the response time setting. If it is set to fastest or MBp, it can actually cause inverse ghosting or that swimming effect. Setting it to standard or fast usually helps balance things out.
Another thing that often works for the G5 is checking the DisplayPort version in the monitor settings. If it is set to 1.4, try switching it to 1.2 directly in the monitor menu. Some users have found that the 1.4 setting causes weird sync issues and artifacts on this specific model even if the GPU supports it.
If you have FreeSync or G-Sync enabled, try turning it off completely both in the monitor menu and the Nvidia control panel. Sometimes the brightness flickering and texture swimming on these panels are a direct result of the adaptive sync struggling with the frame rate fluctuations in MSFS.
Lastly, check if there is a firmware update for your specific G5 model on the Samsung support site. They have released updates specifically to address flickering and display stability for the Odyssey line which might fix how the panel handles those fine horizontal lines in the cockpit.