Maybe one has a temporary problem (depression) that pushes them to commit suicide. That doesn't mean they're stupid. Robin Williams was definitely not stupid, yet he commited suicide. Terry Pratchett was also diagnosed with Parkinson's disease and had contemplated the idea of assisted suicide in a country where this is legal (Switzerland).