I think the semantics are largely dependent on the level of abstraction you are reasoning at. Here I use abstraction loosely to refer to conceptual or physical scale / granularity / resolution. For example, we are (probably) both using the term “gene” as shorthand for the concept of “gene or gene product(s)”. Likewise the term function can refer to phenomena occurring on molecular, cellular, etc length scales, or more amorphous groupings of phenomena such as “flux” through a biological pathway.
But if you really drill down into the nitty gritty, then the “function” of a “gene” is its complete set of state altering / modifying relationships with other bio entities. In this sense, all bio entities have functions because they all have functional relationships with other bio entities.
So yes, all genes, pseudo genes, isoforms, etc have a “function” even if it is redundant, taking up space, or just soaking up some of the pool of tRNA.
Also the minimal genome stuff is pretty fascinating! One of the best research questions I’ve ever heard was, “what are the essential genes of unknown function doing?”