I bumped my leg on a corner and it didn't bruise, but there is a bump there. What is that called? And should I go to the doctor?

(It hurts when I touch it)

The bump you have on your leg could be a hematoma or a cyst. A hematoma is a collection of blood outside of a blood vessel and can form a bump. A cyst is a pocket of fluid that can form under the skin. If it hurts when you touch it, it could be a sign of inflammation or infection. It's always better to be safe rather than sorry, so if you are concerned or if the bump hasn't gone away after a few days, it's best to consult a doctor. They will be able to examine the bump and advise you on any necessary treatment.