Such as is preferable in formal prose, because it avoids the ambiguity that might be present with like. In your first sentence, a reader might briefly think that like was a verb. ‘The Cambridge Guide to English Usage’ puts it this way:
The argument for such as was that it prevented the ambiguity that
might sometimes beset like (though the case seems to have been
exaggerated). Yet this concern probably explains why such as is
more than a thousand times commoner in academic writing than in
speech. Such as is also found in fiction and news writing, but
much less often. These facts of usage make such as more formal and
academic in style, whereas like is straightforward and direct.
I’m not familiar, by the way, with this use of metro.
What I mean is, 'It'd be great to have players like (of the caliber of) Don Bradman, Kapil Dev and Steve Waugh among the current crop of cricketers' doesn't quite mean the same as 'It'd be great to have players such as (they themselves in flesh and blood) Don Bradman, Kapil Dev and Steve Waugh...
– user52023 Oct 04 '13 at 13:20