Upgrade to 6700x3d?

I’m currently running a 5600g with a 6700xt at 1440p 144hz. I have a friend with a 5800x and 6700xt, and they get higher average fps than me on the same games. I also notice fps drops when my CPU hits 100% util, so i’ve been wondering if it’s worth it to upgrade to a better CPU?

I’m choosing the 5700x3d over the 5800x3d due to price concerns, though they don’t seem to be too far apart in terms of performance.