Does one's intent factor into one's ability to rely upon an exemption in Halachah?
For example on Sukkoth, if I have no Sukkah and no intention of building a Sukkah (let's say at work, for one example and I've been bringing non-Mezonoth foods with me to eat for lunch or, for our purposes, "snack" every day; or for another example I am only going to be home for one or two days of the holiday so I don't bother to build one; or for a more extreme example, I just don't care to build one, although I am aware of the requirement to eat in one), and one day it rains, may I then rely on the exemption in Halachah that lifts the requirement to eat in a Sukkah?
Or, for another example, if I am lax/lazy and don't regularly wear Tefillin though I recognize that I ought to, and now it is Ḥol HaMo'ed and my rabbi/synagogue (assume no strong family Minhag, Ba'al Teshuvah, etc.) follows the opinion that one does not wear Tefillin on Ḥol HaMo'ed, may I rely on that exemption?