Depending on the age of both and the engine of both. I'd not want an early E46 6-cyl due to the subframe issue, I think I also prefer the styling of the e36 over the pre-facelift E46, but that might just be me.
Not sure I'm a fan of the autobox in the e36 however. The ones I've driven were never that great.