Depends if we consider ALL the subgenres of rock and ALL the subgenres of rap.
Where do we draw the line between metal and rock? I think the BEST rock is much better than the BEST rap, but there's an equal amount of shitty rock and shitty rap.
But if metal is included in rock, then it's not even close.