Have you ever met or talked to a person and started liking them but realized at the same time it won't work between you two?

It can be because of any reason like the person was right but time was wrong.
Or the person was right but circumstances were not correct.
You, felt you are both very different and it won't work out.
Or be it the distance or priorities and so and so.
Have you felt that way? If yes what did you do?
I have felt that way and I just removed myself from the equation so that I don't say or do something wrong.
Side Note:- Sorry for the long question, I thought I would put it in the description but many people don't read the whole description, as a few days ago a friend of mine posted a fun question with a picture and everything and still people gave wrong answers based on the question only.
Have you ever met or talked to a person and started liking them but realized at the same time it won't work between you two?
Post Opinion