E46 probably retain better value since it's later than the E36 M3. I doubt the M3 would provide that much more fun than the 330ci.
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. Albert Einstein
Swim upstream. Go the other way. Ignore the conventional wisdom. If everybody is doing it one way, there’s a good chance you can find your niche by going exactly in the opposite direction", Sam Walton.