In this matchup, the answer given is clear: SSJ5 Goku is way stronger than SSJ5 Gohan. Goku takes the win by a wide margin.
Just a note, though, Super Saiyan 5 is a fan-made form rather than official Dragon Ball canon, so this is really about fan lore and personal takes. Within that framing, the consensus here favors Goku as the stronger of the two. So if you're picking a winner, go with Goku.