No, it's longer even if you consider the side quests. Check it out on how long to beat. How long it takes to the individual player to beat the game is a different thing. That being said, it's not a matter of hour counts, is the fact that in rdr2 every mission is there to make you connect with the PC and the NPCs. That's what I personally liked and that's why I cared about all of them. I'm sure some people are in love with Jackie after those 2 hours of "screen time". Or they really cared about Evelyn and t-bug. That didn't happen to me with cp77, I need more time."Develloper choice"
RDR2 :
Hunt the Bear with Hosea > Main quest
Fishing with John > Main quest
Find Swanson and play poker > Main quest
Hunt buffalo with Charles > Main quest
Fishing in a boat with Hosea and Dutch > Main quest
Cyberpunk :
Rogue quest line > Side quests
Kerry quest line > Side quests
Judy/Panam/River quest lines > Side quests
So I can agree, RDR2 is longer if you consider only the main quest, because, RockStar decide to include most of the quests in main quest line
But anyway in the end, for me, I don't really care... it doesn't change much since I finish the game with almost the same playing times (maybe a bit more on Cyberpunk... Sandbox activities and challenges are not my thing).
P.S. buffalo hunting was definitely not a compulsory mission, so no main quest. Same for Arthur's ex or the downes.