I can't remember ( who, whom ) it was.
This is a very common doubt. After searching for long I have understood that in the most simplest way when we can replace the word with 'him' we use 'whom'. When we can replace with 'he' we use 'who'. Using that concept I can write it
I can't remember him. It was him. ---> we will use 'whom'. Is this thought process grammatically correct?