M4 high speed tool steel is a very interesting steel. Its far from stainless, but it doesn't rust easily, it can be run very hard (64hrc) and still be tougher than most any stainless steel that exceeds 60hrc. Its tough to machine at that high hardness but at those levels it meets or exceeds M390 wear resistance. At lower hardness, typical of production knives, it offers unmatched toughness for its wear resistance. Its practically made to be used in big, thin knives like what you see in Blade sports. Its one of the best knife steels for almost any type of blade, period.
S90V is very stain resistant, and has an extremely high number of carbides, namely vanadium carbides. It has wear resistance for days and is very stain resistant. Its not tough, due to the sheer amount of carbides, but even at 60-62hrc it is plenty tough for *most* cutting chores. Even larger fixed blade slicers like Phil Wilson is famous for do just fine. If you chip it out or snap it, you were probably doing something stupid.
For an EDC type knife I'll take a good, hard S90V, and for a larger outdoors type blade, M4 is very tough to beat.
Both are time consuming to sharpen without good gear. M4 holds its hair popping edge longer IME than S90V, but if all you need is a great working edge to last a long time, S90V is unreal.
ETA: XHP is a fine steel, but outmatched by both steels mentioned above. Its better compared to S30V or ELMAX or some of the other good mid range steels.