There are two options for locking apps on a Pixel phone, and here they are: Open Settings > Security and privacy > More ...
The new button on iPhone 16 and iPhone 16 Pro already does a lot, and there's more coming soon as part of Apple Intelligence.