Perfect meditation is not a meditation without thoughts.
Meditation without thoughts is just another shape of meditation with thoughts. They are just like left and right hand. No one is better than another.
The key is understanding the nature of the thoughts and no thoughts. Both share the same nature, which is rootless and baseless.
Once you realize that rootless and baseless, nothing can shake you.
Now, your meditation can be shaken by the thoughts, because you feel your thoughts are very solid. You feel as if there a collision between you and thoughts, as if there is this collision between stone (the meditator) and stone (thoughts).
But, once you realize rootless and baseless, you will feel that there is no longer collision. It is like the mist meeting the mist. It will not bang and collide. It will just pass by without any essence. Rootless and baseless.
Because of that, there is stillness and serenity in the middle of thoughts, in the middle of no thoughts, or in the middle of anything.
There is absolutely no different whether you have thoughts or you don't have thoughts.
If you really find out this rootless and baseless at the direct experience level, and someone ask you - which one do you prefer, meditation with thoughts or no thoughts?
You don't prefer one of them. Any of them is not an issue, because they are essentially same.
Even you meditate for 50 years and you have 50 years of thoughts, it is exactly same with the meditation of 50 years without thoughts.
The key is in realizing this rootless and baseless.
I am not here nor there.
I am not right nor wrong.
I do not exist neither non-exist.
I am not I nor non-I.
I am not in samsara nor nirvana.
To All Buddhas, I bow down for the teaching of emptiness. Thank You!