The E240 is a beautiful car as long as it's well maintained it should be a dream to own. It's a much bigger car than the W204 and in terms of features the old W211 would have more features included compared to the W204. Most of the facelifted W204s came with base specs Avantgarde base with synthetic leather/fabric with parking package and the Elegance with the leather with similar package, unless someone paid the full price for one which is highly unlikely as most were bought through the permits issued to govt servants.
They never had that issue when the W211 was being imported so you can find fairly high spec cars compared to what people got later in the 2010s
But in saying that the W204 will be newer and maybe easier to maintain. It's up to your friend to decide.
For me if I have the money and no issues with maintenance I will keep the old W211