^^^ if I was a real photographer, I'd know the answer

But I did see an interesting YT video on sharpness just last night that probably answers the question. This guy had been on a quest for perfect sharpness for years - he had the perfect equipment, the perfect technique, often used a tripod, etc., yet some photos did not appear sharp

The same thing has happened to me. He says it's down to 'acutance' ....
So sharpness (or more accurately, perceived sharpness) is down to edge contrast which is created by lighting conditions and subject matter. The camera can't do anything to change that. Here's the vid:
The Real Reason Your Photos Aren't Sharp
He gets into the finer points of post-processing in Lightroom to increase acutance and that's great if you have that. I don't because all I have is a Chromebook and a very basic photo editor. Without the ability to do detailed post-editing, a lot of it is down to being able to recognize optimal lighting when you take the photo.