I’m sorry your hamster died.
Guinea pigs will be friendly if you get them young, play with them a lot, and amuse them. They have as many kinds of personalities as people, or dogs, friendly, shy, all kinds.
How much space do you have? Guinea pigs need a cage at least 36 inches wide and 15 inches high and deep. All their furniture is a lot larger than for gerbils.
Gerbils have to be bought in pairs, as they have to have gerbil company so they don’t get lonely. I think guinea pigs are a bit happier alone, if they get a lot of attention.
And when you take them out of the cage to play with them, they don’t disappear into tiny corners like gerbils do.
I think the guinea pig will be more likely to be something you can play with.