While I love p10k and use it myself, note that p10k is just a theme, while ohmyzsh is a theme manager (that comes with default themes) + plugin manager + a collection of aliases + other QoL stuff.
p10k is not just a theme, it implements a whole prompt to realize features like instant and transient prompt. For example showing your current Kubernetes namespace while you are typing a kubectl command.