Mostly, crazy is not able to run out of death, and someday it happens.
People say the less you know, the happier you are, but it's more like living in delusions.
Smart in what way? L has stronger deductive reasoning, but Ayanokoji is the far better manipulator.
For a simple answer, though: L would catch Ayanokoji if the latter had the Death Note.