Is it necessary to apply for a patent for a simple invention?

It may be useless to apply for a simple invention in your own consciousness, but you are not sure that it was applied by others on that day and created commercial value, so this invention has nothing to do with you, and you can't guarantee that it will infringe your invention, but in fact you can't make any defense with evidence, so it is still useful to declare a patent.