T-SQL removing (mostly) duplicate rows

I have a sproc that returns an union of two CTE's but where some rows may exist in both except with one computed field difference.

e.g.
Code:
id	rank	title
250904	321	Testing
250904	208	Testing
250930	138	Secondary menu test

What would be the best strategy to reduce the two occurrences of "Testing" to one (and potentially other similar duplicate pairs), selecting the higher rank of the two so that I end up with...

Code:
id	rank	title
250904	321	Testing
250930	138	Secondary menu test

Many thanks