same with milk and cheese. "in theory" it doesn't result in animals getting killed. in reality, it does. there is no dairy milk or cheese you can buy that doesn't involve slaughter.
well actually... there are some ways of buying supposed "slaughter-free" milk, eg: https://www.ahimsamilk.org/
but it's expensive and hard to get hold of
in reality, the best and easiest thing to do is to use alternatives: oat milk, fake cheese, etc. it's fine