I agree. The episode isn’t perfect but the first ~35 minutes are decent.
I’ll never understand why it’s considered to be the worst Star Trek episode. Yes, it has a weird ending but Star Trek had plenty of weird episodes (which aren’t considered bad). What I find much worse are episodes like TNGs Code of Honor that are insulting, or episodes that are downright boring like SNWs The Elysian Kingdom.