Neither. The title and the H1 can differ on purpose, because they serve two different audiences, and once you see that, the necessary-or-redundant question dissolves. Matching them is not required, and it is not wrong; it just depends on whether one phrasing happens to serve both jobs.
The title tag works in the search results. It is the clickable line a searcher reads before they have seen your page at all, so its job is to win the click against the other results, in the language of the query. The H1 works on the page. It is the headline a visitor reads the moment they arrive, so its job is to confirm they are in the right place and orient them to the content. One is a storefront sign seen from the street; the other is the greeting once they are inside. Those are related jobs, but not identical, and the best phrasing for each is not always the same.
That is why matching is optional rather than mandatory. For a straightforward informational page, a single clear phrase often serves both, and letting the title and H1 match keeps a consistent promise from the result to the page, which is perfectly fine. For a page where the click and the on-page experience pull in slightly different directions, you can let the title chase the click while the H1 reads more directly for the reader, and that difference is a feature, not an error. Google has been explicit that the two need not be identical; what it cares about is that each is clear and honest about the topic, not whether they are twins.
Write the title for the search result and the H1 for the reader. Let them match when one phrasing genuinely serves both, and let them differ when each job is better served on its own terms.