It seems this used to be a feature where Android would enable Do not disturb during a call automatically. This feature was removed and does not seem to be a setting anymore.
Does anyone know of any workarounds for this?
References:
- https://support.google.com/pixelphone/thread/14797826?hl=en (The last answer talks about Samsung phones having a setting for this)