I’m experiencing sternum/rib pain, especially when I lay down. When I inhale I can feel discomfort too. Could it just be costochondritis?

Atypical chest pain. Flu-cold - pericarditis (less when leaning forward) or pneumonia (worse when taking deep breath). Cough & Pain when your chest is pressed-costochondritis. Leg swelling-DVT(blood clot in leg going to lungs).
.