Judging from Google's Search Quality Rater Guidelines, expertise matters in all topics. On page 10 of the Search Quality Rater Guidelines, Google explains how to rate a wide range of website types. This includes shopping pages, news pages, forum pages, video pages, etc. (see screenshot)
This leads me to the conclusion that YMYL websites are held to a higher E-E-A-T standard, but E-E-A-T matters for other types of websites too.