On some post-2017 non-HDR Apple displays, the OS actually dynamically adjusts the screen's gamma curve to simulate this effect. On machines that support this, if you hold Option down while opening the Display control panel, there's an additional option that appears to enable/disable this.