Graveyard keeper is a Stardew Valley ripoff?

Ok i've played Graveyard Keeper for the first time like an year ago and i fell in love with it. A couple of weeks ago a friend of mine advised me to play Stardew Valley and i bought it without knowing nothing about it. Needless to say that 5 minutes in the game i realized that it was basically the same game as Graveyard Keeper. Now i've pratically completed Stardew Valley and i can say that Stardew Valley is more complete and full of content, but Graveyard Keeper is much more fun to play. But as i searched Stardew Valley was created way before than Graveyard Keeper, so the second is just a ripoff of the first? What do the 2 communities say about this?

EDIT: Ok literally everybody is saying that they are totally different games, just the same genre. Like wtf? Literally the mechanichs are the same: the cave filled with monsters for me is the biggest example. I mean, i get that you want to introduce some action in this "genre", but like can you develope some original ideas? The caves are literally a copy and paste