On most things, I agree with you. But you can't police someones internal thoughts like that.
I got home from work last week and DP said she was making fish for dinner. I really didn't fancy fish, but it was already being cooked and so I just said "Lovely". Was I being dishonest there?
By your logic, I should have told her that I didn't want fish and that I wouldn't enjoy it. But what would be the point? It's not going to change anything, the fish is already being cooked, all it's going to lead to is a slightly awkward atmosphere. So what exactly is the point of telling the truth.
Or, if you want an example about attraction. As far as I'm concerned, the most beautiful celebrity in the world is Karen Gillan. Tall, leggy, redhead, she's pretty much the definition of my "type". I find DP utterly beautiful, but she is definitely not my "type". She's short, blonde, a little stocky. She's also quite insecure about my looks. So as far as DP knows, I think the most beautiful woman in the world is Florence Pugh. And it's true, I do find Florence Pugh very attractive, but its because she reminds me of DP, rather than because she's my type.
It's a harmless little lie, told because it makes DP feel better about herself. I could be absolutely honest with her, but what would be the point, how would that make our lives better?
Your partner may have lied, but he lied about something you have no absolute right to know about. Absolute honesty isn't required in a relationship, in fact I think it makes for quite a controlling relationship. You're a couple, you're not an unholy merging of two minds into one. He's allowed his own private inner life and thoughts, seperate from you.