The first meaning would never be intended. There is no situation in which "the main thing" would be required to "relax". The subject of that kind of "is to" is normally a person.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.