I'd give the edge to Up Your Arsenal, mainly because it adds vehicles to the mix. Strip that away and the two games are remarkably similar in structure, weapons, and pacing.
If vehicular sections are your thing, Up Your Arsenal is the clear pick. If you're simply after the tightest run-and-gun platforming the series produced, either entry will satisfy, and playing them back to back is the best way to feel how little separates them.