Both involve a smart FL who has an ability to solve mysteries by using her skill and mind. Both have enemies around them that they can't see just yet and both have to deal with a scandal and conspiracy that with both FL and ML plus friends help solve who's th real antagonist at the end.
Both FL is a coroner in ancient China. Intelligent in uncovering cause of death. Both FL become instrumental in helping ML solve cases. Both ML have a magistrate type of post. Both ML are intelliegent, well respected and feared by many