Both are Japanese detective mysteries where there is an insanely smart and quirky main character who, along with their charming partner, solve crimes and mysteries.
If you like Sherlock Holmes, mysteries and bromance, then you will like both of these shows.