In 2023, the Samsung Galaxy S10 will be an older phone, having been released in 2019. However, it can still be a good phone to have depending on your needs and preferences.
In terms of gaming, the Samsung Galaxy S10 is a capable device. It features a powerful processor (Snapdragon 855 or Exynos 9820) and up to 8GB of RAM, which should allow for smooth gameplay and multitasking. The phone also features a beautiful and vibrant OLED display, which is well-suited for gaming.
That being said, newer phones will likely offer better performance and features specifically geared towards gaming. If you are a dedicated mobile gamer who wants the best possible experience, you may want to consider a more recent high-end phone such as the Samsung Galaxy S21 or the OnePlus 9.