The iPhone X has the same amount of speaker holes on each side of the lightning port at the bottom and the XS has 3 on one side and 6 or 7 on the other side. That’s really the only way to tell them apart.
First off all never use rice again. It doesn’t do anything. The very first thing you want to do when your phone comes in contact with water is turn it off. You then need to take the phone apart and clean the board with 91% or higher isopropyl alcohol. Then you let it dry out for around 24 hours put it back together and hope for the best.