I know you can turn a MacBook's brightness essentially off, just by bringing it to the lowest tick. On iOS there is a VoiceOver gesture to turn off the screen even while the phone is on, so there may also be a purpose-built version of that in VO for macOS.
edit: Evidently there is VO-specific tooling: https://support.apple.com/en-us/HT201443