Well, you can't really compare anime(especially late night one) and live action drama due to different time slot and target audience. I guess the kindaichi comparison is more fair in this case.
Detective Galileo also manage to get similar viewer rating during its airing BTW