I currently own both E60 545i and a E92 335i. Both cars are really good and class leaders in my opinion. They serve different purposes. The 5er is more luxury, roomy, and has greater features. The 3er is more sporty, better fuel economy and costs less.
If you are comparing sedans E90 335 vs E60 535. I think I would have to lean more towards the E60 535i. To me any time you are looking at sedans you also care more for practicality, features, and greater room. The 535 will have more room and overall more refined feel. On the other hand if greater room, features and refinement are not a priority. Then why even consider a sedan.
Then go for E92 coupe which is better looking then the sedan. That way you can get a sporty, fast, and fun good looking car. That gives slightly better gas mileage then the 5er.
So if sedan then 535. If coupe then 335i.