In the Bible, King Solomon said "Everything is meaningless" (Ecclesiastes 1:2) .
Some people say "life is what you make it". I think what happens in a person's life is mostly outside of their control e.g. where and when you were born, the genes you were born with, how others treat you, unexpected things in life, some could be life changing etc.
The idea of life having no meaning and nothing mattering is plausible for example bad things happen, you can cry and feel pain but the world continues as if nothing happened.
Everyone has a different path in life.
We are born different and in different situations.
Just because something worked for someone else doesn't mean it will work for you;
you need to figure out what works for you.