You''ve absolutely no way of preventing a memory from forming.
I'm not so sure that's necessarily true.
We have different forms of memory.
We have working memory.
We have short term memory.
And we have long term memory.
Not all experiences make the transition from one form of memory to the next.
However, there are theories about how everything in our lives is stored in there somewhere if only we could find a way to access it. This is the part of the conversation where the autistic savants are usually rolled out with their amazing abilities to recite mundane details of their entire lives ad infinitum.
But, autistic savants are not normal people. Their brains do not function in the way that normal brains function. And thus they are not really suitable for such an example.
There are also people with photographic memories. But, I'd say that there brains also do not operate 'normally'. Even if not so out of the ordinary as the savant.
A key aspect to memory is focus. We must focus our attention on an experience in order for it to be placed into memory. It is for this reason that extreme experiences are placed in memory while drab experiences are generally lost.
An interesting thing to consider is how dreams fade from memory. But, if you wake up and recall the dream. Reflect on the dream. Then the dream can be placed in memory. This shows the importance of focus and attention to the memory-making process.
Also interesting to consider is the accuracy of memory.
You might believe that you recall a specific event with a high degree of accuracy, but this has been shown to be not quite the case in a great deal of cases. Memory is subject to a sort of revisionism. Thus is the credibility of eye witnesses often called into question.