That’s literally the first 5 in order
HOWEVER, I would watch the “big 3” origin stories.
- Iron Man (essential)
- Thor (probably optional tbh)
- Captain America (essential, also just a good watch, set in WW2)
- Avengers
- Captain America: The Winter Soldier
- Guardians of the Galaxy
- Avengers age of ultron
- Captain America: Civil war (this is basically Avengers 2.5)
- Doctor Strange
- Thor Ragnarok
- Avengers: Infinity War
- Avengers Endgame
So that’s 12 out of the 22 up to Endgame.
OPTIONALLY I would say also watch Black Panther and Guardians 2 before Infinity War. If you enjoy Guardians 1 you’ll probably just want to watch it anyway. Black Panther honestly you can get the gist from Civil War + Infinity War. Maybe Ant Man before Endgame but to be honest again you can get the gist from context and other films.