Agreed Hiruma, I am glad you did all this math. One of the things that really irks me about the game is that it's so heavily focused on ranged combat that almost all published material consistently awards range attacks at the expense of melee.
* Melee classes have problems with using cover, thus a lower potential AC.
* They get fewer gear choices which increase their chances to hit or removes hit penalties. (hitting an enemy is ALWAYS more important than maximizing damage. A miss = no damage at all.)
* Attacks of Opportunity are a joke. They can't interrupt spells being cast, there's no concentration in the game to end an ongoing effects, and you get at most, one per round.
It's quite clear that the publishers of the game designed it primarily for ranged combat and continue to fuel that goal. TBH, I am kinda glad we are wrapping up our campaign. I have a feeling that I will be moving on from Starfinder to other rule sets (glad I didn't sink too much money into the books). I've given the rules a fair shake (14 months of game play), and found them to be confining and inconsistent. You pick one path, you go down it, and the developers have confined your options very narrowly within that path. Maximizing (meta gaming) your character is a must for higher tier play or the curve quickly leaves you behind. After spending some time recently with 5e, the contrast in the rule sets and balance is glaring. I hope they do better with Pathfinder 2.0.