Video quality is mainly not determined by resolution
It appears that many people’s world model about digital video quality is something along the lines of “lower-resolution video looks worse because it is lower-resolution, and lower-resolution video files have lower bitrate (smaller filesize relative to video length) because they are lower-resolution”. This is not accurate or useful, and holding...
I mean, the ideal settings depend on content, use case and even personal preference when it comes to the details, so it's probably not fundamentally possible to design an ideal video encoding algorithm that automatically produces the best possible video quality at the desired filesize without the need to manually finetune the settings. As long as we are manually finetuning the settings, the output resolution is one of the settings we can change, so in that sense, all the algorithms already implement that feature.