Ecclesiastes 7 is another chapter of comparisons, that is, it essentially states that this is better than that. Recall that we should not take these comparisons as absolutes, which is why Solomon uses the term “better” rather than giving a direct, dogmatic command. Why does he do this when we would normally expect a direct command from God? Sometimes conditions alter cases.
We can see a clear illustration of this in Solomon's statement in verse 1 that the day of one's death is better than the day of one's birth. It should be that way, but in real life, it is not always so. Some foolish people absolutely waste their precious gift of life from God, so their deaths leave no room for hope.
The implication of Solomon's thought is that his statement reflects the way it should be, and those who believe God's Word can take steps to ensure the conclusion of their lives will be that way. That better conclusion to life largely depends on the choices made in life.
John W. Ritenbaugh
Ecclesiastes and Christian Living (Part Eight): Death