The best games do that constantly. It’s part of their storyline to test your morals and ethics in difficult situations.
Ever play any of the Fallout games? Or Cyberpunk 2077? A big part of each of those games is discovering “who you are” as a character. What living in that world means to you, and what you will do, how far you will go, to survive it.
The Witcher games are pretty fucking great