Yes, many times.
The most recent was, I got a 2016 4Runner in May. I had owned a 2005 CR-V since new.......
In the first week, I walked up to a silver 2nd-gen CR-V and kept hitting the key fob and then realized it wasn't mine. Took me a month to actually realize I had a different car.
I also did that in college......only one time.
I thought I was going to get shot. I legit was scared and the guy realized I sincerely made a mistake, and calmed down.