I think that a visual quality of hardware video encoder (VideoToolBox H.264) in M1 Macs is not great.
I compared a software libx264 encoder (Mac) and NVIDIA Geforce (NVENC) on Windows 10 with the same bitrate or constant quality mode producing almost identical file size.
I see many visual artefacts on a video encoded with VideoToolBox H.264 (1080p 60 fps) 3300K or CQ56. It's especially noticeable on video with animated photo slideshows and blur effect. Too many artefacts. NVENC and libx264 produce much better visual results with the same file size.
I tested in my app and in Handbrake Beta for M1 which supports VideoToolBox H.264 encoding.
Apple engineers can contact me for more details.