Like Genshin Impact, Star Rail has a decent base game that does well with its characters and combat. Notice I didn't say "great".
However, after you get through the intro and the first world, they start adding on to the game. There's a whole bunch of 1-off mini-games that are fun in their own right and have nothing to do with the Gacha.
The first one is a museum administration mini game where you're responsible for "hiring" people that have 3 stats, and then balancing those stats to make money for the museum, then using the money to upgrade the museum, run mini-quests to restore the museum, and hire more staff. And expand the museum.
Each of these little mini-games is a few days of fun, and I think I've found 4 so far IIRC in Star Rail. Genshin Impact has had similar things, but tend to not be permanent, and to be less involved than Star Rail's.
The gacha is generous enough that you can generally play without paying anything. I don't think I've given any money to Star Rail, though I have paid the monthly $5 to Genshin Impact for a few months now. And I'll admit, I started thinking about paying it to Star Rail, too. It's definitely a gacha game, but on the actually-playable side if you're playing free.
That said, if gacha games are something that just stick in your craw, it's unlikely that any game will change that, and I'd argue that you're better off never finding out.
In the end, I'd say you're best just accepting that for what it is, it's one of the best, and letting it go. There's no point in being upset that people enjoy a game that you can't. Let them have their fun, and go have your own instead.