Cats are a lot like teenagers or pre-teens.
They can all have different personalities and degrees of “loyal” or not, loving or mean, impulsive or responsible, trainable or stuck-up or defiant, and everything else. There are teenagers that want nothing to do with adults for a month or months on end and then randomly show up like nothing changed.
I think cats are just stuck in perpetual teenage mode.
By contrast, dogs are naturally desperately pathologically super overly codependent and high-maintenance. More like a kid before they before they become a pre-teen.
Some people like having a pet with no boundaries that is more like a young child (dog) that thinks their parents are the ultimate super heroes, and some people like having one that is a little more like a teenager. But sometimes it feels like you play a little roulette with what kind of teenager you get.
I don’t actually believe that though. I think it’s quite possible to train/cats in many ways. I know, I’ve done so to many cats, even older adult cats set in their ways.