Re: Canon G7X macro really bad - I don`t think so...
Here are a few tries from my end, straight out of camera JPEGs, all shot hand-held.
1) Normal (auto) focus used, camera seems to be a bit too close in order to have the center of the scene in focus, where focus is clearly moved towards a bit further away points - letters "G" and "g".
#1, Normal focus, a bit too close
2) Macro focus used, camera moved away a bit in order to obtain correct focus at the center of the scene (two "o" letters). I also used "Av" mode here in order to set the aperture to f/2.8 you used in your test shots.
#2, Macro focus, moved a way a bit to obtain focus at the very center
3) Manual focus, a bit too close again (similar to #1), yet focus peaking here clearly showed that focus is moved outside the center of the scene (because being too close), indeed, and ending up on the outer edges of two "G" letters (left part of "G" to the left, right part of "g" to the right).
#3, Manual focus, a bit too close again, yet focus peaking clearly showed focus being on "G/g" letters
In the end, I don`t think there`s anything wrong with your camera, you just need to adapt and learn to use its strengths. Bigger sensor size comes with its pros and cons (depending on your needs), and pretty shallow depth of field can be tricky for auto-focus to handle correctly, as even the slightest mistake, while nothing uncommon, will be much more visible / apparent in comparison to smaller sensor cameras.
If absolute precision is a must, then I guess manual focusing (using focus peaking) is the best (if not the only) option. Only if you get out of focus areas where focus peaking shows your focus point you may think of possibly malfunctioning camera, otherwise auto-focus is not perfect, and perfection is not to be expected
And as already mentioned in previous posts, choosing a smaller aperture or/and moving away and zooming-in may provide interesting results as well (and much more possibilities than with smaller sensor cameras).