If you are planning to buy either of these cameras then, this video will be helpful.
The Canon G7X Mark II has that excellent dynamic range if you are shooting in Raw which is absent inside GoPro.
The Canon G7X Mark II also has that DSLR look to the image while shooting at a lower aperture of 1.8
The limitation of the Canon G7X Mark II is that it can only record up to 1080P.
The GoPro Hero 9 is an action cam, So it will keep everything in focus. If you are looking for that look. Then GoPro will be the best camera out there with 5K video resolution and a lot of slow-motion options to shoot in. Best for making Cinematic videos.
If you want to know more about any of the cameras in detail, plz leave a comment. Thank you.