That’s a hard question to answer. I’m much more of a pie fan, the sweet viscous almost glaze like consistancy of the filling has always been such a treat with good non soggy crust, adds something that to me was always more enjoyable than cake, I’d felt that cake while good, didn’t offer a satisfying mouthfeel because I’ve never liked icing very much.
It’s always left this unneeded greasy feel in my mouth if it was a buttercream or the regular store bought, but one thing cake can’t really match is intensity of flavor when compared to pie flavor, but that’s not a negative, lets take Lemon pie, compared to Lemon cake: With the pie, the filling is sweet, tangy, bright, almost refreshing if it’s not too sour or sickly sweet, while in cake form, Lemon cake has this delectable softness to it’s flavor that you can’t find anywhere else, it’s like a soft hug from a blanket that makes you wish it was a pillow so you can sleep on it’s lightly scented almost spongy texture. but what’s even better is you can reinforce that flavor with that same bright zesty refreshing taste in the icing itself.
it’s a hard question to answer, I’m much more of a pie man myself, but cake is pretty good when make well.