Does the ship's computer have a commission?
It was a good episode but it had some elements of Star Trek tropes in it, like the evil admirals and Picard can talk his way out of anything.
Data is basically an Isaac Asimov android (down to the positronic brain) and Measure of a Man is an Asimov-type story whose tropes don't entirely fit within in the Trek universe.
It makes no sense within the context of the Trek universe that Data is unable to use contractions for instance - but it makes sense in the context of how a robot might have been conceived of in the 1940s.
There are also a few early episodes of Voyager where the crew treat the doctor badly.
It seems odd in a universe where these people are having relationships and children with aliens from another planet, that they'd be weird about computerized people.
My retconn is that there must have been a lot of stochastic parrot/AI psychosis in the Star Trek universe when they first started making Majel Barrett-voice computers.
Maybe lots of people got confused and thought they were talking to a person when they started having conversations with the computer, and this lead to an over-correction where people were highly disposed to say "this machine isn't a person" even when it presents like one.