How does the PS5 handle different rendering resolutions (1080p, 1440p, 4k)?

I come from PC and i've never owned a PlayStation, I'm thinking about buying a PS5 for the exclusives, but i have a question about resolution. On PC when you play any games, you can set the game to render in any resolution you want, usually between 1080, 1440 and 4k, and obviously the lower the resolution the better the performance will be. My question is, does this work as well in PS5? I know in-game you can select different graphical settings, usually between performance and fidelity but in PC i usually play in 1440p and i would prefer gaming at 1440p with 60fps locked than to play in 4k with lower graphics quality. Is the playstation able to do this?