Epilogue: not a sprain! The X-ray showed nothing interesting. The doctor thinks it might have been bruising to the tendons. They gave me a referral for a hand specialist if the pain continues. As of now, it feels better.
Thanks for pushing me to see a doc, @generica @dumpling and others!