A .22 is good enough if it is a suicide by someone that knows what they are doing. The issue is not just the caliber though but also the type of gun. If it is a revolver, there is no silencing that. It has to be an automatic.
.22 is small enough that you could use the nipple off a baby bottle on the end of the barrel and it will dramatically reduce the noise. This would work on many automatic .22 pistols or a .22 rifle, but only once. but not for the second shot. The reason is that the noise is mostly air rushing back into the barrel. The nipple is pulled into the barrel when the partial vacuum is created slowing this rush of air.
While it is damned hard to commit suicide with a 2 liter bottle tied on the end of the barrel, that also works once, but will be somewhat less successful for the second shot.
The best place to make sure you died with such a small caliber is through the eye. It will very likely not exit the skull, but instead bounce around a bit scrambling the brain. Death is never 100% even with a larger caliber as some unfortunate people have discovered, but while I don't have the exact statistics, most are successful when they place the barrel in the right spot.