Either of these will work with any version of Pi-hole, as long as you are running a supported OS. We have users running the latest Pi-hole version on the oldest Pi's.
I am running Dev 6.0 on a Pi Zero W with Bullseye, and have several 3B+, Zero2 W, and 3A+. Pi-hole runs equally well on all of these.
I'm currently using Pihole 5.18.2 on one of my Raspberry 1B. Then I assume that I can continue to use this hardware with Pihole version 6.
Is there any information that Resperry PI 1B will only be supported by the operating system until 2025?
That would be a shame, as these RPI 1Bs are very energy efficient and are completely sufficient for such purposes.
As your question is rather specific, I guess you already have some source of information there? A quick websearch has only revealed Raspberry Pi | endoflife.date but they are not citing any real sources (or rather: what they cite does not seem to back what they claim is said there) so trustworthiness is entirely unclear. However, even if this is the case, support is available in a number of alternatives, such as Debian or Ubuntu.