Pumpkin pointed out this episode where Bashir gets possessed by the transferred consciousness of some Kobliad convict/evil scientist guy.

His attempt at a personality shift when he gets possessed is wonderful. I love it.

The first seasons are the best seasons in all Star Treks.