moveTowards not effected by maxDistanceDelta

My Object travels to its position as if I’ve changed the position instead of using moveTowards, despite setting x to anywhere from one trillion to 0.000000000000000001f. I’ve checked all of the other forum questions but still can’t find any answers. Maybe you guys see something I don’t.

 Transform posA;
 Transform posB;
 
 private void Update (){ 
  if (bool == true) {
                  pos.position = posA.position;
              } else {
                  pos.position = posB.position:
              }
              transform.position = Vector3.MoveTowards(transform.position, pos.position, x * Time.deltaTime);
 }

This is a fully working script.

Explanatory video - Answer 123 - YouTube

using UnityEngine;

public class Test : MonoBehaviour
{
    public bool trigger;
    public float speed = 1;
    public Transform posA;
    public Transform posB;

    Vector3 pos;

    void Update()
    {
        if (trigger == true) pos = posA.position;
        else pos = posB.position;
        transform.position = Vector3.MoveTowards(transform.position, pos, Time.deltaTime * speed);
    }
}